Skip to content

bench(parquet): add same-projection predicate chain benchmark - #11007

Open
haohuaijin wants to merge 1 commit into
apache:mainfrom
haohuaijin:bench-arrow-reader-predicate-fusion
Open

bench(parquet): add same-projection predicate chain benchmark#11007
haohuaijin wants to merge 1 commit into
apache:mainfrom
haohuaijin:bench-arrow-reader-predicate-fusion

Conversation

@haohuaijin

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Related to #10926.

Rationale for this change

RowFilter evaluates each ArrowPredicate separately, so consecutive predicates on the same projection decode that column, or replay it from the predicate cache, once per predicate. #10859 fuses such chains. Per the contributing guide, the benchmark is submitted separately so it can run on the automated runner and serve as the baseline for that change.

What changes are included in this PR?

A criterion benchmark, parquet/benches/arrow_reader_predicate_fusion.rs, that scans an in-memory Snappy Parquet file of 262,144 rows through the async reader. Case names are type/layout/cache/predicates/profile:

  • int64 / string filter column, fragmented (one key per row) or clustered (each key repeated for 128 rows)
  • cached / uncached: whether the filter column is also projected and therefore served by the predicate cache
  • chains of 1 (control), 2 and 4 predicates
  • survivor profiles all99, all50, early1 and late1
  • a selection_boundary group with run lengths 16, 32 and 64 around the default row selection policy threshold

75 cases in total. Each case is validated once outside measurement for the expected row count and predicate cache use.

Are these changes tested?

The benchmark builds and its registration-time validation passes on main.

Are there any user-facing changes?

No.

Add a criterion benchmark for RowFilter chains whose predicates share one
projection. It scans an in-memory Snappy Parquet file of 262,144 rows
through the async reader and covers int64 and string filter columns in
fragmented and clustered layouts, with the filter column either projected
(predicate cache) or not, chains of one, two and four predicates, and
survivor profiles that keep 99% or 50% per predicate or 1% in the first or
last predicate. A selection_boundary group probes run lengths around the
row selection policy threshold.
@github-actions github-actions Bot added the parquet Changes to the parquet crate label Sep 6, 2026
@haohuaijin
haohuaijin marked this pull request as ready for review September 6, 2026 13:27
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