cloud-fan commented on code in PR #49993:
URL: https://github.com/apache/spark/pull/49993#discussion_r1961000606
##########
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:
We can probably clean up this later: I don't think we need special arguments
resolution in `SubstituteExecuteImmediate`. EXECUTE IMMEDIATE is a leaf node
and it can't resolve arguments to any columns, so it should be fine to go with
normal resolution code path and resolve the arguments to session variables.
--
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]