maropu commented on a change in pull request #23750: [SPARK-19712][SQL] Pushing
Left Semi and Left Anti joins through Project, Aggregate, Window, Union etc.
URL: https://github.com/apache/spark/pull/23750#discussion_r256819442
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
##########
@@ -1188,6 +1189,190 @@ object PushDownPredicate extends Rule[LogicalPlan]
with PredicateHelper {
}
}
+object PushDownLeftSemiAntiJoin extends Rule[LogicalPlan] with PredicateHelper
{
+ def apply(plan: LogicalPlan): LogicalPlan = plan transform {
+ // Similar to the above Filter over Project
+ // LeftSemi/LeftAnti over Project
+ case join @ Join(p @ Project(pList, gChild), rightOp,
LeftSemiOrAnti(joinType), joinCond, hint)
Review comment:
`join` and `p` not used.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]