ulysses-you commented on code in PR #37612:
URL: https://github.com/apache/spark/pull/37612#discussion_r955770780
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/PropagateEmptyRelation.scala:
##########
@@ -127,7 +131,13 @@ abstract class PropagateEmptyRelationBase extends
Rule[LogicalPlan] with CastSup
}
// the only case can be matched here is that LogicalQueryStage is empty
- case p: LeafNode if !p.isInstanceOf[LocalRelation] && isEmpty(p) =>
empty(p)
+ case p: LeafNode if !p.isInstanceOf[LocalRelation] && isEmpty(p) =>
+ if (p.getTagValue(ROOT_REPARTITION).isEmpty) {
Review Comment:
it is `LogicalQueryStage` in AQE since the reparition is planned to shuffle
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]