vladimirg-db commented on code in PR #49445:
URL: https://github.com/apache/spark/pull/49445#discussion_r1914787039
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/resolver/ResolverGuard.scala:
##########
@@ -209,7 +209,8 @@ class ResolverGuard(catalogManager: CatalogManager) extends
SQLConfHelper {
// Case-sensitive inference is not supported for Hive table schema.
conf.caseSensitiveInferenceMode ==
HiveCaseSensitiveInferenceMode.NEVER_INFER
- private def checkVariables() = catalogManager.tempVariableManager.isEmpty
+ private def checkVariables() = catalogManager.tempVariableManager.isEmpty &&
+ catalogManager.scriptingLocalVariableManager.forall(_.isEmpty)
Review Comment:
```suggestion
private def checkVariables() =
catalogManager.tempVariableManager.isEmpty &&
catalogManager.scriptingLocalVariableManager.forall(_.isEmpty)
```
--
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]