We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de655d0 commit f3f7773Copy full SHA for f3f7773
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/subquery.scala
@@ -74,8 +74,7 @@ object RewritePredicateSubquery extends Rule[LogicalPlan] with PredicateHelper {
74
// to
75
// (a1=a2 OR isnull(a1=a2)) AND (b1=b2 OR isnull(b1=b2)) AND ...
76
val joinConds = splitConjunctivePredicates(joinCond.get)
77
- val isNulls = joinConds.map(IsNull)
78
- val pairs = joinConds.zip(isNulls).map(Or.tupled).reduceLeft(And)
+ val pairs = joinConds.map(c => Or(c, IsNull(c))).reduceLeft(And)
79
Join(outerPlan, sub, LeftAnti, Option(pairs))
80
case (p, predicate) =>
81
val (newCond, inputPlan) = rewriteExistentialExpr(Seq(predicate), p)
0 commit comments