tustvold commented on a change in pull request #1448:
URL: https://github.com/apache/arrow-rs/pull/1448#discussion_r831212258
##########
File path: parquet/src/arrow/arrow_reader.rs
##########
@@ -1210,4 +1210,19 @@ mod tests {
assert_eq!(get_dict(&batches[3]), get_dict(&batches[4]));
assert_eq!(get_dict(&batches[4]), get_dict(&batches[5]));
}
+
+ #[test]
+ fn test_read_null_list() {
+ let testdata = arrow::util::test_util::parquet_test_data();
+ let path = format!("{}/null_list.parquet", testdata);
+ let parquet_file_reader =
+
SerializedFileReader::try_from(File::open(&path).unwrap()).unwrap();
+ let mut arrow_reader =
ParquetFileArrowReader::new(Arc::new(parquet_file_reader));
+ let mut record_batch_reader = arrow_reader
+ .get_record_reader(60)
+ .expect("Failed to read into array!");
+
+ let batch = record_batch_reader.next();
+ assert!(batch.is_none());
Review comment:
I don't think this is correct, locally I ran
```
> duckdb.query(f"select count(*) from 'null_list.parquet'").fetchall()
[(1,)]
```
Which would imply that the data contains a single row, with a single null
value
--
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]