Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming and reading of resources through a table schema with cast on iteration. #9

Closed
6 tasks done
georgeslabreche opened this issue Nov 12, 2017 · 3 comments
Closed
6 tasks done
Labels

Comments

@georgeslabreche
Copy link

georgeslabreche commented Nov 12, 2017

Streaming and reading of resources through a table schema with cast on iteration.

  • Iterate over data in CSV String format.
  • Iterate over data in local CSV file.
  • Iterate over data in remote CSV file (URL).
  • Iterate over data in JSON Array format.
  • Cast on iteration.
  • Update README.
@georgeslabreche
Copy link
Author

@roll So we only attempt to cast the data if the schema is provided as part of the Resource object?

@roll
Copy link
Member

roll commented Nov 29, 2017

@georgeslabreche
Yes - https://github.com/frictionlessdata/tableschema-js/blob/master/src/table.js#L55-L143.

In Python/JavaScript a Resource class just re-uses tableschema.Table for all this operations. Hopefully it's possible to do also in Java.

@georgeslabreche
Copy link
Author

Pending tableschema-java refactoring:
frictionlessdata/tableschema-java#18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants