cxzl25 commented on a change in pull request #34041:
URL: https://github.com/apache/spark/pull/34041#discussion_r737243549



##########
File path: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLDriver.scala
##########
@@ -65,7 +65,11 @@ private[hive] class SparkSQLDriver(val context: SQLContext = 
SparkSQLEnv.sqlCont
       }
       context.sparkContext.setJobDescription(substitutorCommand)
       val execution = 
context.sessionState.executePlan(context.sql(command).logicalPlan)
-      hiveResponse = SQLExecution.withNewExecutionId(execution) {
+      val queryExecutionName = execution.executedPlan match {
+        case _: CommandResultExec => None

Review comment:
       Because commnad has been executed in advance in `QueryExecution`.
   
   
https://github.com/apache/spark/blob/1099fd342075b53ad9ddb2787911f2dabb340a3d/sql/core/src/main/scala/org/apache/spark/sql/execution/QueryExecution.scala#L106-L110




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to