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 2019/11/12 15:29:32 UTC

[GitHub] [spark] wangyum commented on a change in pull request #26409: [SPARK-29655][SQL] Read bucketed tables obeys spark.sql.shuffle.partitions

wangyum commented on a change in pull request #26409: [SPARK-29655][SQL] Read bucketed tables obeys spark.sql.shuffle.partitions
URL: https://github.com/apache/spark/pull/26409#discussion_r345273315
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/EnsureRequirements.scala
 ##########
 @@ -83,7 +83,25 @@ case class EnsureRequirements(conf: SQLConf) extends Rule[SparkPlan] {
         numPartitionsSet.headOption
       }
 
-      val targetNumPartitions = requiredNumPartitions.getOrElse(childrenNumPartitions.max)
+      // maxNumPostShufflePartitions is usually larger than numShufflePartitions,
+      // which causes some bucket map join lose efficacy after enabling adaptive execution.
+      // Please see SPARK-29655 for more details.
+      val expectedChildrenNumPartitions = if (conf.adaptiveExecutionEnabled) {
 
 Review comment:
   What do you think of another implementation: https://github.com/apache/spark/pull/26409/commits/45109c71c3efc31f0d5aba6588a811faeea2a8f2? It may be more reasonable. But personally, I do not like add new conf.

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