You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "thinkharderdev (via GitHub)" <gi...@apache.org> on 2025/03/20 21:27:02 UTC
[I] Push limit down into ParquetRecordBatchStream [arrow-rs-object-store]
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org