thinkharderdev opened a new issue, #2543:
URL: https://github.com/apache/arrow-rs/issues/2543

   **Describe the bug**
   <!--
   A clear and concise description of what the bug is.
   -->
   
   If you have a row selection which skips the first data page, 
`SerializedPageReader` will error incorrectly. 
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   Create a `ParquetRecordBatchStream` using a `RowFilter` that skips the first 
page in any column. 
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   This should work.
   
   **Additional context**
   <!--
   Add any other context about the problem here.
   -->
   
   In `GenericColumnReader::has_next`, when `num_buffered_value` is 0, we call 
`GenericColumnReader::read_new_page`. In `GenericRecordReader::skip_records` we 
have to check if we are at the end of the column, this will always read the 
first data page. In cases where the selection skips that page, it will not be 
fetched so we get an error. 


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