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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to