Skip to content

fix: Address overly aggressive parquet pruning of map cols - #27259

Open
ianthetechie wants to merge 3 commits into
apache:mainfrom
ianthetechie:fix-parquet-map-fields-regression
Open

ianthetechie wants to merge 3 commits into
apache:mainfrom
ianthetechie:fix-parquet-map-fields-regression

Conversation

@ianthetechie

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

The parquet pushdown was too eager in removing map columns, causing query issues. This makes the prune more conservative. See the issue for details.

What changes are included in this PR?

This PR reduces the scope of the prune, allowing for map columns to be filtered in the WHERE clause.

What is the testing strategy for this PR?

Additional SQL logic test cases are included with a reproducible test case that fails before the changes and passes after. Existing tests were insufficient, as this regression was introduced in the DataFusion 54 series (#20854).

Are there any user-facing changes?

No user-facing changes.

I'm not sure how bug fix backports work, but it'd be nice to have this for at least DF 55 if that's not too much trouble. Otherwise I can maintain my own fork until contrib packages like geodatafusion and iceberg catch up.

@github-actions github-actions Bot added sqllogictest SQL Logic Tests (.slt) datasource Changes to the datasource crate labels Nov 9, 2026
@AdamGS

AdamGS commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Not an expert on the Parquet stuff but I'll take a look and wait for people who are more familiar to approve.

re backporting - that's a pretty easy process, once a PR is merged open a PR with a similar change targeting the release branch (branch-55, branch-56 etc.), once its merged there it'll be included in the next release of that branch (which generally happens depending on user interest and maintainer availability).

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 sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overaggressive pruning of nested fields(?) breaks some valid queries unless parquet pushdown is disabled

2 participants