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

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   
   Currently, `ParquetRecordBatchStream` can read only data pages required for 
a given `RowSelection` (if there is an `OffsetIndex`). If we can have limit on 
the number of rows we want to read there is not really a good way to push that 
down as an `ArrowPredicate` though 
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   `ParquetRecordBatchStream` takes a `limit: Option<usize>` argument. If 
provided, after evaluating the `RowFilter` the resulting `RowSelection` is 
truncated to the provided limit (eg after selecting `limit` rows, skip 
everything else). Then for any remaining projected columns we only need to read 
enough data pages to satisfy the limit. 
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   Do nothing
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


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