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

Reading csv does not work #130

Closed
dudzicp opened this issue Jan 16, 2023 · 1 comment
Closed

Reading csv does not work #130

dudzicp opened this issue Jan 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dudzicp
Copy link

dudzicp commented Jan 16, 2023

Describe the bug
ctx.read_csv( returns empty dataset

To Reproduce
`import datafusion

ctx = datafusion.SessionContext()

blasted = ctx.read_csv(path="/localpath/a.tsv", has_header=True, delimiter="\t", schema_infer_max_records=100)
blasted.show()
`
Expected behavior
Few rows from csv should be printed out

@dudzicp dudzicp added the bug Something isn't working label Jan 16, 2023
@dudzicp dudzicp changed the title Reading csv does not works Reading csv does not work Jan 16, 2023
@dudzicp
Copy link
Author

dudzicp commented Jan 16, 2023

It turned out that file_extension argument is required:

df = ctx.read_csv(path="/localfile.tsv", has_header=True, delimiter="\t", file_extension="tsv")
loaded the dataframe properly.

@dudzicp dudzicp closed this as completed Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant