-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Print row, data present, expected type, and row number in error messages for arrow-csv #7361
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
Conversation
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Sure! I'll add tests which cover more cases, I noticed that the tests weren't really handling all the errors but thought of adding that as another enhancement. |
|
I think it would be very valuable to add tests -- if you want to make a separate PR first to add error tests that would be great too. |
|
I will add it in this PR itself |
|
Thanks @psiayn ! |
|
Marking as draft as I think this PR is no longer waiting on feedback. Please mark it as ready for review when it is ready for another look |
|
❤️ -- I kicked off the CI checks on this PR too |
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much @psiayn -- very nice contribution
|
FYI @niebayes |
Which issue does this PR close?
Rationale for this change
What changes are included in this PR?
This change allows for better error messages in the arrow-csv crate as suggested in the issue for ease of debugging. Row number is still for a batch not the csv file, so it shows the entire row.
Are there any user-facing changes?
The changed don't affect public APIs.