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

Re-enable Polars as a supported library for jsonl with glob paths #3017

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nameexhaustion
Copy link
Contributor

Ref #3006
Issue fixed by pola-rs/polars#17958

is_json_lines = ".jsonl" in first_file or HfFileSystem(token=hf_token).open(first_file, "r").read(1) != "["

if is_json_lines:
read_func = "read_ndjson"
else:
read_func = "read_json"
# JSON not yet supported by Polars
return None
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by - removed this as polars doesn't have support for read_json yet

@nameexhaustion nameexhaustion marked this pull request as draft August 15, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant