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


##########
cpp/src/parquet/column_reader.cc:
##########
@@ -1117,11 +1124,10 @@ int64_t TypedColumnReaderImpl<DType>::ReadBatch(int64_t 
batch_size, int16_t* def
   int64_t num_def_levels = 0;
   int64_t values_to_read = 0;
   ReadLevels(batch_size, def_levels, rep_levels, &num_def_levels, 
&values_to_read);
-
   *values_read = this->ReadValues(values_to_read, values);
+  ARROW_DCHECK_GE(values_to_read, *values_read);

Review Comment:
   Yeah, you're right, this can occur on a corrupt file!



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to