You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/03/11 16:44:36 UTC

[GitHub] [spark] maryannxue commented on a change in pull request #27879: [SPARK-31124][SQL] change the default value of minPartitionNum in AQE

maryannxue commented on a change in pull request #27879: [SPARK-31124][SQL] change the default value of minPartitionNum in AQE
URL: https://github.com/apache/spark/pull/27879#discussion_r391111486
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/CoalesceShufflePartitions.scala
 ##########
 @@ -66,12 +68,16 @@ case class CoalesceShufflePartitions(conf: SQLConf) extends Rule[SparkPlan] {
       val distinctNumPreShufflePartitions =
         validMetrics.map(stats => stats.bytesByPartitionId.length).distinct
       if (validMetrics.nonEmpty && distinctNumPreShufflePartitions.length == 1) {
+        // To avoid perf regression, we by default set the minimum number of coalesced partitions
 
 Review comment:
   nit: We fall back to Spark default parallelism if the minimum number of coalesced partition is not set, so to avoid regressions compared to no coalescing.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org