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

   **Describe the bug**
   <!--
   A clear and concise description of what the bug is.
   -->
   
   The CSV reader will get stuck in an infinite loop if asked to skip more 
lines than are present in the input
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   ```
   #[test]
       fn test_skip_insufficient_rows() {
           let csv = "a\nv\n";
           let cursor = Cursor::new(csv.as_bytes());
           let mut reader = RecordReader::new(cursor, Reader::new(), 1);
           let err = reader.skip(3).unwrap_err().to_string();
           assert_eq!(err, "sdlkfs");
       }
   ```
   
   **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