You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support file-level parquet row selections (#22940)
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes#123` indicates that this PR will close issue #123.
-->
- Closes#22939
## Rationale for this change
- see issue #22939
## What changes are included in this PR?
- Add public `ParquetRowSelection`.
- Add `ParquetAccessPlan::try_new_from_overall_row_selection`.
- Allow Parquet opener setup to read either `ParquetAccessPlan` or
`ParquetRowSelection`.
- Reject using both extension types on the same file.
- Validate that the selection row count matches the file row count.
- Document the new extension path in `ParquetSource`.
## Are these changes tested?
Yes. This PR adds tests for:
- converting a file-level selection into row-group access
- rejecting invalid selection row counts
- creating an initial plan from `ParquetRowSelection`
- rejecting both `ParquetAccessPlan` and `ParquetRowSelection` on the
same file
## Are there any user-facing changes?
Yes. This adds a new public `ParquetRowSelection` type for callers that
want to attach a file-level Parquet `RowSelection` to a
`PartitionedFile`.
0 commit comments