Skip to content

Commit 018ae58

Browse files
committed
update
1 parent 492e074 commit 018ae58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/PropagateEmptyRelation.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ abstract class PropagateEmptyRelationBase extends Rule[LogicalPlan] with CastSup
111111
// Except is handled as LeftAnti by `ReplaceExceptWithAntiJoin` rule.
112112
case LeftOuter | LeftSemi | LeftAnti if isLeftEmpty => empty(p)
113113
case LeftSemi if isRightEmpty | isFalseCondition => empty(p)
114-
case LeftAnti if isRightEmpty && canExecuteWithoutJoin(p.left) => p.left
115-
case LeftAnti if isFalseCondition && canExecuteWithoutJoin(p.left) => p.left
114+
case LeftAnti if (isRightEmpty | isFalseCondition) && canExecuteWithoutJoin(p.left) =>
115+
p.left
116116
case FullOuter if isLeftEmpty && isRightEmpty => empty(p)
117117
case LeftOuter | FullOuter if isRightEmpty && canExecuteWithoutJoin(p.left) =>
118118
Project(p.left.output ++ nullValueProjectList(p.right), p.left)

0 commit comments

Comments
 (0)