dusantism-db commented on code in PR #49993:
URL: https://github.com/apache/spark/pull/49993#discussion_r1961486924
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -1670,6 +1683,9 @@ class Analyzer(override val catalogManager:
CatalogManager) extends RuleExecutor
case s: Sort if !s.resolved || s.missingInput.nonEmpty =>
resolveReferencesInSort(s)
+ // Pass for Execute Immediate as arguments will be resolved by
[[SubstituteExecuteImmediate]].
Review Comment:
The reason I put the pass here is to not resolve `targetVariables`. For
example if we have a session variable `x` and we want to set it with INTO
clause of EXECUTE IMMEDIATE, if we don't have this pass here `x` will get
resolved to it's value. This doesn't make sense as we don't want the variables
value, we want it's `VariableReference`
--
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]