cloud-fan commented on a change in pull request #33123:
URL: https://github.com/apache/spark/pull/33123#discussion_r660656779



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/ShufflePartitionsUtil.scala
##########
@@ -172,7 +172,7 @@ object ShufflePartitionsUtil extends Logging {
     // coalesce any partitions after the end of last skew section.
     if (numPartitions > start) {
       val partitionSpecs = coalescePartitions(
-        partitionIndices(start), partitionIndices.last + 1, validMetrics, 
targetSize)
+        partitionIndices(start), partitionIndices.last + 1, validMetrics, 
targetSize, true)
       newPartitionSpecsSeq.zip(partitionSpecs).foreach(spec => spec._1 ++= 
spec._2)
     }

Review comment:
       How do we make sure we return at least one partition spec if there is no 
skew partition spec?




-- 
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]

Reply via email to