Hasnaathussain opened a new pull request, #27675: URL: https://github.com/apache/datafusion/pull/27675
## Which issue does this PR close? Part of #25451. ## Rationale for this change The join-condition guard prevents filter pushdown from moving predicates with subqueries into a join condition. The optimizer package suite previously passed when the guard was replaced with `Ok(true)`. ## What changes are included in this PR? Add a direct test of the guard. A comparison between the join inputs passes on its own. The same comparison combined with `EXISTS` under `OR` is rejected. The optimizer splits top-level `AND` before reaching the guard, so `OR` keeps the subquery nested in the expression the guard checks. ## What is the testing strategy for this PR? `cargo test --locked --profile ci -p datafusion-optimizer` passed 983 unit tests, 29 integration tests, and 5 doctests. Replacing the guard with `Ok(true)` using `cargo-mutants` made the new `EXISTS` assertion fail. ## Are there any user-facing changes? This adds test coverage only. -- 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]
