Skip to content

fix(parquet): restore opaque return type for RowSelection::iter - #10450

Merged
Jefffrey merged 2 commits into
apache:mainfrom
haohuaijin:restore-iter-signature
Jul 28, 2026
Merged

fix(parquet): restore opaque return type for RowSelection::iter#10450
Jefffrey merged 2 commits into
apache:mainfrom
haohuaijin:restore-iter-signature

Conversation

@haohuaijin

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

#10141 changed RowSelection::iter from impl Iterator<Item = &RowSelector> to a named type, RowSelectionIter<'_>. As @Jefffrey pointed out, the opaque return type is worth keeping so we stay free to change the implementation later.

What changes are included in this PR?

RowSelection::iter returns impl Iterator<Item = &RowSelector> again. Both match arms are already std::slice::Iter<'_, RowSelector>, so RowSelectionIter is not needed at all and is removed rather than made private. No behaviour change.

Are these changes tested?

Covered by the existing RowSelection tests, which call iter() on both backings. cargo test -p parquet --all-features passes.

Are there any user-facing changes?

No. RowSelectionIter was added in #10141 and never released, and iter() keeps the Iterator<Item = &RowSelector> contract callers already relied on.

apache#10141 changed `RowSelection::iter` from `impl Iterator<Item = &RowSelector>`
to a named type, `RowSelectionIter<'_>`. Restore the opaque return type so we
stay free to change the implementation later.

Both match arms are already `std::slice::Iter<'_, RowSelector>`, so
`RowSelectionIter` is not needed at all and is removed rather than made
private. No behaviour change.
@github-actions github-actions Bot added the parquet Changes to the parquet crate label Jul 28, 2026
@Jefffrey
Jefffrey merged commit 4f96226 into apache:main Jul 28, 2026
16 checks passed
@Jefffrey

Copy link
Copy Markdown
Contributor

thanks @haohuaijin & @hhhizzz

@haohuaijin
haohuaijin deleted the restore-iter-signature branch July 28, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants