c21 commented on a change in pull request #31641:
URL: https://github.com/apache/spark/pull/31641#discussion_r583118271
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/EliminateJoinToEmptyRelation.scala
##########
@@ -53,5 +57,23 @@ object EliminateJoinToEmptyRelation extends
Rule[LogicalPlan] {
case j @ Join(_, _, LeftSemi, _, _) if canEliminate(j.right,
EmptyHashedRelation) =>
LocalRelation(j.output, data = Seq.empty, isStreaming = j.isStreaming)
+
+ case j @ Join(_, _, LeftAnti, None, _) =>
+ val isNonEmptyBroadcastedRightSide = j.right match {
+ case LogicalQueryStage(_, stage: BroadcastQueryStageExec)
Review comment:
@cloud-fan - thanks, use row count is better, updated.
----------------------------------------------------------------
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]