mzabaluev commented on code in PR #9237:
URL: https://github.com/apache/arrow-rs/pull/9237#discussion_r2712165072


##########
arrow-avro/src/reader/mod.rs:
##########
@@ -9081,4 +9081,46 @@ mod test {
             "entire RecordBatch mismatch (schema, all columns, all rows)"
         );
     }
+
+    #[test]
+    fn test_bad_varint_bug_nullable_array_items() {
+        use flate2::read::GzDecoder;
+        use std::io::Read;
+        let manifest_dir = env!("CARGO_MANIFEST_DIR");
+        let gz_path = 
format!("{manifest_dir}/test/data/bad-varint-bug.avro.gz");
+        let gz_file = File::open(&gz_path).expect("test file should exist");
+        let mut decoder = GzDecoder::new(gz_file);

Review Comment:
   I actually had the file unpacked in my test suite branch, it's quite small. 
I only gzipped it to be able to post to GitHub. But since there's already a 
dependency on `flate2`, might as well use it.



-- 
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