davidm-db commented on code in PR #49006:
URL: https://github.com/apache/spark/pull/49006#discussion_r1868382930
##########
sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingInterpreter.scala:
##########
@@ -44,9 +44,13 @@ case class SqlScriptingInterpreter(session: SparkSession) {
*/
def buildExecutionPlan(
compound: CompoundBody,
- args: Map[String, Expression]): Iterator[CompoundStatementExec] = {
- transformTreeIntoExecutable(compound, args)
- .asInstanceOf[CompoundBodyExec].getTreeIterator
+ args: Map[String, Expression],
+ context: SqlScriptingExecutionContext): Iterator[CompoundStatementExec]
= {
+ val compoundBodyExec = transformTreeIntoExecutable(compound, args, context)
+ .asInstanceOf[CompoundBodyExec]
+ context.frames.addOne(new
SqlScriptingExecutionFrame(compoundBodyExec.getTreeIterator))
+ compoundBodyExec.enterScope()
Review Comment:
is this line what we talked about removing from here?
--
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]