manuzhang commented on a change in pull request #28954:
URL: https://github.com/apache/spark/pull/28954#discussion_r448135495
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/CoalesceShufflePartitions.scala
##########
@@ -79,8 +66,29 @@ case class CoalesceShufflePartitions(session: SparkSession)
extends Rule[SparkPl
case stage: ShuffleQueryStageExec if stageIds.contains(stage.id) =>
CustomShuffleReaderExec(stage, partitionSpecs)
}
+ }
+
+ if (validMetrics.isEmpty) {
Review comment:
I think it's like coalescing one less shuffles and handled by the
`nonEmpty` codes.
----------------------------------------------------------------
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]