sunchao commented on a change in pull request #8007: URL: https://github.com/apache/arrow/pull/8007#discussion_r473493106
########## File path: rust/parquet/src/arrow/array_reader.rs ########## @@ -136,10 +136,8 @@ impl<T: DataType> ArrayReader for PrimitiveArrayReader<T> { while records_read < batch_size { let records_to_read = batch_size - records_read; + // NB can be 0 if at end of page let records_read_once = self.record_reader.read_records(records_to_read)?; - if records_read_once == 0 { Review comment: +1 ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org