You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "yeya24 (via GitHub)" <gi...@apache.org> on 2025/09/12 02:23:22 UTC
[I] Allow specifying projection in ParquetRecordBatchReader::try_new_with_row_groups [arrow-rs]
yeya24 opened a new issue, #8326:
URL: https://github.com/apache/arrow-rs/issues/8326
**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*)
-->
The current [ParquetRecordBatchReader::try_new_with_row_groups](https://github.com/apache/arrow-rs/blob/aa626e12de8bc0d0f56b5349239cae1be8d1a195/parquet/src/arrow/arrow_reader/mod.rs#L1101) function always uses ProjectionMask::all(), which forces reading all columns from the parquet file even when only specific columns are needed. This is inefficient for use cases where you only want to read a subset of columns, as it results in unnecessary I/O and memory usage.
**Describe the solution you'd like**
<!--
A clear and concise description of what you want to happen.
-->
Modify the [try_new_with_row_groups](https://github.com/apache/arrow-rs/blob/aa626e12de8bc0d0f56b5349239cae1be8d1a195/parquet/src/arrow/arrow_reader/mod.rs#L1101) function to accept a projection: &ProjectionMask parameter instead of hardcoding ProjectionMask::all(). This will allow callers to specify exactly which columns they want to read, enabling more efficient data access patterns.
**Describe alternatives you've considered**
<!--
A clear and concise description of any alternative solutions or features you've considered.
-->
**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
Re: [I] Allow specifying projection in ParquetRecordBatchReader::try_new_with_row_groups [arrow-rs]
Posted by "yeya24 (via GitHub)" <gi...@apache.org>.
yeya24 closed issue #8326: Allow specifying projection in ParquetRecordBatchReader::try_new_with_row_groups
URL: https://github.com/apache/arrow-rs/issues/8326
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org