ulysses-you commented on a change in pull request #32012:
URL: https://github.com/apache/spark/pull/32012#discussion_r605320366



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala
##########
@@ -168,7 +168,7 @@ class SQLMetricsSuite extends SharedSparkSession with 
SQLMetricsTestUtils
     //           Exchange(nodeId = 5)
     //             LocalTableScan(nodeId = 6)
     Seq(true, false).foreach { enableWholeStage =>
-      val df = generateRandomBytesDF().repartition(1).groupBy('a).count()
+      val df = generateRandomBytesDF().repartition(2).groupBy('a).count()

Review comment:
       `repartition(1)` + `groupBy ` will eliminate the agg required exchange 
since `SinglePartition` can satisfies with all `Distribution` (exclude 
broadcast). So there change to `repartition(2)`.




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

Reply via email to