emkornfield commented on a change in pull request #11984:
URL: https://github.com/apache/arrow/pull/11984#discussion_r779308172
##########
File path: cpp/src/parquet/column_reader.cc
##########
@@ -980,7 +983,7 @@ int64_t TypedColumnReaderImpl<DType>::ReadBatch(int64_t
batch_size, int16_t* def
int16_t* rep_levels, T* values,
int64_t* values_read) {
// HasNext invokes ReadNewPage
- if (!HasNext()) {
+ if (batch_size == 0 || !HasNext()) {
Review comment:
maybe add a comment document the use-case for batch_size == 0 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]