Skip to content

feat(parquet): clip nested wrappers during schema pruning - #24315

Open
buraksenn wants to merge 1 commit into
apache:mainfrom
buraksenn:24122-clip-nested-wrappers
Open

feat(parquet): clip nested wrappers during schema pruning#24315
buraksenn wants to merge 1 commit into
apache:mainfrom
buraksenn:24122-clip-nested-wrappers

Conversation

@buraksenn

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Parquet nested schema pruning currently descends through Struct, List, and LargeList. Narrowing casts through ListView, LargeListView, FixedSizeList, or Dictionary therefore read physical leaves that the cast never consumes.

The issue also listed RunEndEncoded, but its casts do not use DataFusion's name-based nested cast path. Arrow may map nested struct fields positionally, so clipping those values could change results; they must remain a full read.

What changes are included in this PR?

Extend nested schema pruning through matching ListView, LargeListView, FixedSizeList, and Dictionary wrappers while preserving safe full-read fallbacks.

Are these changes tested?

Yes, with new and existing tests.

Are there any user-facing changes?

No.

@github-actions github-actions Bot added the datasource Changes to the datasource crate label Aug 12, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.15%. Comparing base (bbb552f) to head (775dfe4).

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #24315    +/-   ##
========================================
  Coverage   81.14%   81.15%            
========================================
  Files        1110     1110            
  Lines      386137   386318   +181     
  Branches   386137   386318   +181     
========================================
+ Hits       313347   313518   +171     
- Misses      54324    54330     +6     
- Partials    18466    18470     +4     

☔ 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.

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

Labels

datasource Changes to the datasource crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clip ListView / Dictionary / FixedSizeList wrappers in nested schema pruning

2 participants