Skip to content

bench: multi-conjunct shared-prefix struct row-filter pushdown - #23524

Merged
adriangb merged 4 commits into
apache:mainfrom
SubhamSinghal:parquet-struct-row-filter-bench
Aug 6, 2026
Merged

bench: multi-conjunct shared-prefix struct row-filter pushdown#23524
adriangb merged 4 commits into
apache:mainfrom
SubhamSinghal:parquet-struct-row-filter-bench

Conversation

@SubhamSinghal

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

The row-filter planner in datafusion-datasource-parquet walks the accessed struct-field paths for every filter, resolves the Parquet leaves, and builds a pruned Arrow schema. When multiple predicates share a common struct prefix, the planner can consolidate that traversal work — this is the case the StructAccessTree refactor in #23217 is intended to accelerate.

The existing bench suite does not cover this shape:

  • parquet_struct_query — single-field struct predicates only
    (WHERE s['id'] = 5).
  • parquet_struct_projection — projection-only, no WHERE clause.

So multi-conjunct shared-prefix planning is currently uninstrumented, and the effect of consolidating access-path traversals is invisible against the existing suite.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

No. Benchmark-only; no library or API surface is touched.

@github-actionsgithub-actionsBot added the core Core DataFusion crate label Jul 13, 2026
@kumarUjjawal

Copy link
Copy Markdown
Contributor

Hi @SubhamSinghal I will take a look. Can you please resolve the conflict.

@SubhamSinghal

Copy link
Copy Markdown
ContributorAuthor

resolved merge conflict

@codecov-commenter

codecov-commenter commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.91%. Comparing base (62650ef) to head (077a32d).
⚠️ Report is 31 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #23524 +/- ##
==========================================
+ Coverage 80.87% 80.91% +0.03% 
==========================================
Files 1101 1102 +1 Lines 375765 377102 +1337 Branches 375765 377102 +1337 ==========================================
+ Hits 303915 305123 +1208 - Misses 53747 53786 +39 - Partials 18103 18193 +90 

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment threaddatafusion/core/benches/parquet_struct_shared_prefix_pushdown.rs Outdated

@kumarUjjawalkumarUjjawal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @SubhamSinghal

This looks good

@adriangb
adriangb added this pull request to the merge queueAug 6, 2026
Merged via the queue into apache:main with commit 24483dbAug 6, 2026
38 checks passed
kosiew pushed a commit to kosiew/datafusion that referenced this pull request Aug 12, 2026
…e#23524)
## Which issue does this PR close?
- Follow-up to review feedback on apache#23217. ## Rationale for this change
The row-filter planner in `datafusion-datasource-parquet` walks the
accessed struct-field paths for every filter, resolves the Parquet
leaves, and builds a pruned Arrow schema. When multiple predicates share
a common struct prefix, the planner can consolidate that traversal work
— this is the case the `StructAccessTree` refactor in apache#23217 is intended
to accelerate.
The existing bench suite does not cover this shape:
- `parquet_struct_query` — single-field struct predicates only
(`WHERE s['id'] = 5`).
- `parquet_struct_projection` — projection-only, no `WHERE` clause.
So multi-conjunct shared-prefix planning is currently uninstrumented,
and the effect of consolidating access-path traversals is invisible
against the existing suite.
## What changes are included in this PR?
## Are these changes tested?
## Are there any user-facing changes?
No. Benchmark-only; no library or API surface is touched.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coreCore DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@SubhamSinghal@kumarUjjawal@codecov-commenter@adriangb