emkornfield commented on code in PR #41346:
URL: https://github.com/apache/arrow/pull/41346#discussion_r1583425988


##########
cpp/src/parquet/column_reader.cc:
##########
@@ -1412,15 +1418,16 @@ class TypedRecordReader : public 
TypedColumnReaderImpl<DType>,
           levels_read = this->ReadDefinitionLevels(batch_size, def_levels);
         }
 
-        // Exhausted column chunk
-        if (levels_read == 0) {
-          break;
+        if (ARROW_PREDICT_FALSE(batch_size != levels_read)) {
+          throw ParquetException(

Review Comment:
   maybe standardize this error message to one place.



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