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

   ## Which issue does this PR close?
   
   - Closes #24414.
   
   ## Rationale for this change
   
   Projection pushdown through `SortMergeJoinExec` could reuse stale join-filter
   indices and return incorrect results.
   
   ## What changes are included in this PR?
   
   - Rewrite the `JoinFilter` during projection pushdown.
   - Reject the swap when a filter column cannot be mapped.
   - Add an SQLLogicTest for the incorrect-result case.
   
   ## Are these changes tested?
   
   Yes. The SQLLogicTest verifies the physical plan and the expected `(1, 1)`
   result. The full Rust lint and extended workspace test suites also pass.
   
   ## Are there any user-facing changes?
   
   Affected queries now return correct results. There are 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