cloud-fan commented on a change in pull request #27253: [SPARK-30524] [SQL] follow up SPARK-30524 to resolve comments URL: https://github.com/apache/spark/pull/27253#discussion_r367810008
########## File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala ########## @@ -223,7 +204,7 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] { shuffleStage.id == right.id => PartialShuffleReaderExec(shuffleStage, skewedPartitions.toSet) } - subJoins += optimizedSmj + subJoins += optimizedSmj.asInstanceOf[SortMergeJoinExec].copy(partialSMJ = Some(true)) Review comment: the SMJ may not be the root node. Now I think it's better to match SMJ in the plan transformation above. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org