emkornfield commented on a change in pull request #11984:
URL: https://github.com/apache/arrow/pull/11984#discussion_r779308089



##########
File path: cpp/src/parquet/column_reader.cc
##########
@@ -993,6 +996,9 @@ int64_t TypedColumnReaderImpl<DType>::ReadBatch(int64_t 
batch_size, int16_t* def
 
   *values_read = this->ReadValues(values_to_read, values);
   int64_t total_values = std::max(num_def_levels, *values_read);
+  if (total_values == 0) {
+    ParquetException::EofException("Read 0 values");

Review comment:
       is it possible to add in the number of additional values expected or is 
it not-knowable at this point?  Are there issues if somehow a data page/row 
group has different values?




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