You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "andygrove (via GitHub)" <gi...@apache.org> on 2023/02/03 16:17:31 UTC

[GitHub] [arrow-rs] andygrove opened a new issue, #3656: Regression in CSV reader error handling

andygrove opened a new issue, #3656:
URL: https://github.com/apache/arrow-rs/issues/3656

   **Describe the bug**
   <!--
   A clear and concise description of what the bug is.
   -->
   
   I have a tool that reads CSV files using DataFusion. I have a file with an invalid UTF-8 character, apparently.
   
   With DataFusion 16.1.0, I get this error:
   
   ```
   Arrow error: Parser error: Error parsing line 27: Error(Utf8 { pos: Some(Position { byte: 3458, line: 28, record: 27 }), err: Utf8Error { field: 14, valid_up_to: 1 } })"))
   ```
   
   With DataFusion 17.0.0, I get this error:
   
   ```
   ArrowError("underlying Arrow error: Csv error: Encountered invalid UTF-8 data: invalid utf-8 sequence of 1 bytes from index 2911"))
   ```
   
   The first error is much more helpful because it gives me the line and field numbers. I was quickly able to locate the bad character.
   
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   Try reading a CSV file with invalid UTF-8 characters (perhaps try reading some random binary file).
   
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   **Additional context**
   <!--
   Add any other context about the problem here.
   -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on issue #3656: Regression in CSV reader error handling

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #3656:
URL: https://github.com/apache/arrow-rs/issues/3656#issuecomment-1426076917

   `label_issue.py` automatically added labels {'arrow'} from #3657


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold closed issue #3656: Regression in CSV reader error handling

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold closed issue #3656: Regression in CSV reader error handling
URL: https://github.com/apache/arrow-rs/issues/3656


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org