mapleFU opened a new issue, #37126:
URL: https://github.com/apache/arrow/issues/37126

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   
   ```c++
   int PlainBooleanDecoder::Decode(bool* buffer, int max_values) {
     max_values = std::min(max_values, num_values_);
     if (bit_reader_->GetBatch(1, buffer, max_values) != max_values) {
       ParquetException::EofException();
     }
     num_values_ -= max_values;
     return max_values;
   }
   ```
   
   Seems that this function didn't handle `num_values_` in a right way. 
`num_values_` is maximum of existing value (including null), it might be 
greater than existing value count.
   
   ### Component(s)
   
   C++, Parquet


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