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

[FEA] Clearer error for bad filename for jsonlines reader #13845

Closed
randerzander opened this issue Aug 9, 2023 · 2 comments
Closed

[FEA] Clearer error for bad filename for jsonlines reader #13845

randerzander opened this issue Aug 9, 2023 · 2 comments
Labels
feature request New feature or request

Comments

@randerzander
Copy link
Contributor

If I give a bad path/filename when trying to read_json w/ lines=True, I get a confusing error, which might send me down a path debugging the JSON format instead of realizing I was giving a bad path:

import cudf

cudf.read_json("nonexistent_filename.jsonl", lines=True)

Trace:

RuntimeError: CUDF failure at: /opt/conda/conda-bld/work/cpp/src/io/json/json_column.cu:967: Input needs to be an array of arrays or an array of (nested) objects

For example, read_csv handles this nicely:

cudf.read_csv("non_existent_file.csv")
FileNotFoundError: non_existent_file.csv could not be resolved to any files
@randerzander randerzander added feature request New feature or request Needs Triage Need team to review and classify labels Aug 9, 2023
@davidwendt
Copy link
Contributor

Looks like the behavior has changed a bit from #13026
We probably should combine these issues.

@GregoryKimball
Copy link
Contributor

Closing in favor of #13026

@GregoryKimball GregoryKimball closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2023
@bdice bdice removed the Needs Triage Need team to review and classify label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
Archived in project
Development

No branches or pull requests

4 participants