AdamGS opened a new pull request, #25273: URL: https://github.com/apache/datafusion/pull/25273
## Which issue does this PR close? - Closes #25258. ## Rationale for this change During the various decorrelation passes, stripping outer references too early makes the outer and inner columns indistinguishable. Both operands are then rewritten to reference the subquery, turning the join predicate into a comparison of an inner column with itself (something like col1 > col1). ## What changes are included in this PR? Its mostly a minor change in where we strip the outer column reference from the join filter in the optimizer. ## What is the testing strategy for this PR? New SLT tests provided in the initial issue, asserting both results and logical plan shape. ## Are there any user-facing changes? `find_join_exprs` which is a public function now doesn't strip outer references from the provided filters. -- 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]
