luluorta commented on a change in pull request #30357:
URL: https://github.com/apache/spark/pull/30357#discussion_r522816889



##########
File path: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkExecuteStatementOperation.scala
##########
@@ -306,7 +306,7 @@ private[hive] class SparkExecuteStatementOperation(
         
parentSession.getSessionState.getConf.setClassLoader(executionHiveClassLoader)
       }
 
-      val substitutorStatement = new 
VariableSubstitution(sqlContext.conf).substitute(statement)
+      val substitutorStatement = new 
VariableSubstitution().substitute(statement)

Review comment:
       I wrapped this statement in `SQLConf.withExistingConf`  to be on the 
safe side.




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

Reply via email to