cloud-fan commented on a change in pull request #27701: [SPARK-30953][SQL] 
InsertAdaptiveSparkPlan should also skip v2 command
URL: https://github.com/apache/spark/pull/27701#discussion_r384402422
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/InsertAdaptiveSparkPlan.scala
 ##########
 @@ -44,7 +45,7 @@ case class InsertAdaptiveSparkPlan(
 
   private def applyInternal(plan: SparkPlan, isSubquery: Boolean): SparkPlan = 
plan match {
     case _ if !conf.adaptiveExecutionEnabled => plan
-    case _: ExecutedCommandExec => plan
+    case _: ExecutedCommandExec | _: V2CommandExec => plan
 
 Review comment:
   ideally this is corrected, but then we need to apply AQE for input queries 
of command. e.g. CTAS, INSERT

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to