alamb opened a new pull request, #24530:
URL: https://github.com/apache/datafusion/pull/24530

   ## Which issue does this PR close?
   
   - Part of https://github.com/apache/datafusion/issues/24462
   - Backport of #24125 to `branch-55` (for 55.1.0, tracked in #24462).
   - Fixes #24109
   
   ## Rationale for this change
   
   With `datafusion.execution.parquet.pushdown_filters = true`, a predicate on 
a struct field was reported as fully handled by the scan whenever the file 
needed schema adaptation, so `FilterExec` was removed from the plan and the 
predicate was silently dropped — returning every row instead of the filtered 
set. This is a correctness bug (wrong results), not specific to 55.0.0, so it 
fits the backport criteria.
   
   ## What changes are included in this PR?
   
   Clean cherry-pick of #24125 (commit 
40c208e5d65b931ef3cc3e121e85e228045a1a17). Git's recursive merge auto-resolved 
surrounding context differences in 
`datafusion/physical-expr-adapter/src/schema_rewriter.rs` and 
`datafusion/sqllogictest/test_files/parquet_nested_schema_pruning.slt`; no 
manual conflict resolution or adaptation of the fix itself was required.
   
   ## Are these changes tested?
   
   Yes. Carries the original regression coverage, all tests pass.
   
   ## Are there any user-facing changes?
   
   `WHERE s['field'] = ...` predicates on struct columns now filter correctly 
when Parquet filter pushdown requires schema adaptation. No API changes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to