Skip to content

optimize RowGroupIndexReader for single row group reads - #9226

Merged
alamb merged 1 commit into
apache:mainfrom
pydantic:friendlymatthew/optimize-push-batch-filter
Jan 28, 2026
Merged

alamb merged 1 commit into
apache:mainfrom
pydantic:friendlymatthew/optimize-push-batch-filter

Conversation

@friendlymatthew

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

This PR adds a fast path that detects single row group reads at construction time and stores the constant index value directly, avoiding Hashmap allocation and iterator overhead

For multiple row groups, the existing iterator-based approach is used unchanged

@github-actions github-actions Bot added the parquet parquet crate label Jan 20, 2026
@Dandandan

Copy link
Copy Markdown
Contributor

@friendlymatthew do you have some performance results?

@alamb

alamb commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

@friendlymatthew are you able to answer @Dandandan questions about performance benchmarks?

@friendlymatthew

Copy link
Copy Markdown
Contributor Author

@friendlymatthew are you able to answer @Dandandan questions about performance benchmarks?

Hi, yes. I am afk these next two weeks so am slow to respond. But will try to get it done before then!

@alamb

alamb commented Jan 27, 2026

Copy link
Copy Markdown
Contributor

Sounds good -- thank you!

@friendlymatthew

Copy link
Copy Markdown
Contributor Author

The results:

Screenshot 2026-01-27 at 12 38 31 PM Screenshot 2026-01-27 at 12 38 39 PM

Dandandan pushed a commit that referenced this pull request Jan 28, 2026
# Rationale for this change

- Related to #9226

This PR adds a set of benchmarks for the row group index reader to
measure virtual column perf across different scenarios

The benchmarks test single row group reads (the common case when using
row group filtering) and multiple row group reads. It also tests varying
row counts (100k to 5M rows) and different # of row groups (2 to 20)
@alamb
alamb merged commit a8a8c09 into apache:main Jan 28, 2026
@alamb

alamb commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

Thank you @friendlymatthew and @Dandandan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf: optimize RowGroupIndexReader for single row group reads

3 participants