dusantism-db commented on code in PR #47756:
URL: https://github.com/apache/spark/pull/47756#discussion_r1747052803
##########
sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingInterpreter.scala:
##########
@@ -93,16 +94,27 @@ case class SqlScriptingInterpreter() {
transformTreeIntoExecutable(body,
session).asInstanceOf[CompoundBodyExec])
new IfElseStatementExec(
conditionsExec, conditionalBodiesExec, unconditionalBodiesExec,
session)
+
case WhileStatement(condition, body, label) =>
val conditionExec =
new SingleStatementExec(condition.parsedPlan, condition.origin,
isInternal = false)
val bodyExec =
transformTreeIntoExecutable(body,
session).asInstanceOf[CompoundBodyExec]
new WhileStatementExec(conditionExec, bodyExec, label, session)
+
+ case RepeatStatement(condition, body, label) =>
+ val conditionExec =
+ new SingleStatementExec(condition.parsedPlan, condition.origin,
isInternal = false)
+ val bodyExec =
+ transformTreeIntoExecutable(body,
session).asInstanceOf[CompoundBodyExec]
+ new RepeatStatementExec(conditionExec, bodyExec, label, session)
+
case leaveStatement: LeaveStatement =>
new LeaveStatementExec(leaveStatement.label)
+
case iterateStatement: IterateStatement =>
new IterateStatementExec(iterateStatement.label)
+
Review Comment:
The empty lines are a suggestion for better readability of this method
--
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]