Skip to content

refactor(parquet): bundle array reader recursion args into ReaderArgs#10089

Open
HippoBaro wants to merge 1 commit into
apache:mainfrom
HippoBaro:reader_args
Open

refactor(parquet): bundle array reader recursion args into ReaderArgs#10089
HippoBaro wants to merge 1 commit into
apache:mainfrom
HippoBaro:reader_args

Conversation

@HippoBaro
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

The recursive build_reader / build_*_reader methods in the array reader builder thread field and mask through every call.

What changes are included in this PR?

Bundle them into a small Copy ReaderArgs struct so the recursive signatures stay compact and there is a single, documented home for per-field reader options added in the future. This is a mechanical, behavior-preserving change: build_array_reader constructs the args at the entry point, group readers recurse with args.with_field(child), and leaf readers read args.field and args.mask.

Are these changes tested?

All tests passing.

Are there any user-facing changes?

No.

The recursive `build_reader` / `build_*_reader` methods in the array
reader builder thread `field` and `mask` through every call. Bundle them
into a small `Copy` `ReaderArgs` struct so the recursive signatures stay
compact and there is a single, documented home for per-field reader
options added in the future.

This is a mechanical, behavior-preserving change: `build_array_reader`
constructs the args at the entry point, group readers recurse with
`args.with_field(child)`, and leaf readers read `args.field` and
`args.mask`. No functional change.
@github-actions github-actions Bot added the parquet Changes to the parquet crate label Jun 7, 2026
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.

1 participant