jecsand838 commented on code in PR #8100: URL: https://github.com/apache/arrow-rs/pull/8100#discussion_r2267516616
########## arrow-avro/src/reader/mod.rs: ########## @@ -130,6 +129,16 @@ fn read_header<R: BufRead>(mut reader: R) -> Result<Header, ArrowError> { }) } +fn is_incomplete_data(err: &ArrowError) -> bool { + matches!( + err, + ArrowError::ParseError(msg) + if msg.contains("Unexpected EOF") + || msg.contains("bad varint") + || msg.contains("offset overflow") Review Comment: That's fair. I planned to clean this up in the Schema Resolution `RecordDecoder` PR that's coming after https://github.com/apache/arrow-rs/pull/8047 get merged in. -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org