AngersZhuuuu commented on a change in pull request #28575:
URL: https://github.com/apache/spark/pull/28575#discussion_r435018473
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
##########
@@ -1372,6 +1377,96 @@ object PushPredicateThroughJoin extends
Rule[LogicalPlan] with PredicateHelper {
}
}
+/**
+ * Rewriting join condition to conjunctive normal form expression so that we
can push
+ * more predicate.
+ */
+object PushPredicateThroughJoinByCNF extends Rule[LogicalPlan] with
PredicateHelper {
+ /**
+ * Rewrite pattern:
+ * 1. (a && b) || (c && d) --> (a || c) && (a || d) && (b || c) && (b && d)
Review comment:
1 . (a && b) || (c && d) --> (a || c) && (a || d) && (b || c) && (b ||
d) ?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]