cloud-fan commented on a change in pull request #29797:
URL: https://github.com/apache/spark/pull/29797#discussion_r504729804
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AdaptiveSparkPlanExec.scala
##########
@@ -102,6 +104,16 @@ case class AdaptiveSparkPlanExec(
OptimizeLocalShuffleReader(conf)
)
+ private def finalStageOptimizerRules: Seq[Rule[SparkPlan]] =
+ context.qe.sparkPlan match {
+ case _: DataWritingCommandExec | _: V2TableWriteExec =>
+ // SPARK-32932: Local shuffle reader could break partitioning that
works best
+ // for the following writing command
+
queryStageOptimizerRules.filterNot(_.isInstanceOf[OptimizeLocalShuffleReader])
Review comment:
nit: indentation is one space off.
----------------------------------------------------------------
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]