JkSelf commented on a change in pull request #27260: [SPARK-30549][SQL] Fix the 
subquery shown issue in UI When enable AQE
URL: https://github.com/apache/spark/pull/27260#discussion_r368967521
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AdaptiveSparkPlanExec.scala
 ##########
 @@ -484,12 +496,24 @@ case class AdaptiveSparkPlanExec(
    * Notify the listeners of the physical plan change.
    */
   private def onUpdatePlan(executionId: Long): Unit = {
+    if (isSubquery) {
+      onUpdateAccumulator(collectSQLMetrics(currentPhysicalPlan))
 
 Review comment:
   We can not put this code in `onUpdatePlan`, Because when the sql is 
subquery, the `executionId` is None and it will not call the `OnUpdatePlan`.

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