miland-db commented on code in PR #49006:
URL: https://github.com/apache/spark/pull/49006#discussion_r1879807502
##########
sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingExecutionNode.scala:
##########
@@ -177,12 +180,52 @@ class NoOpStatementExec extends LeafStatementExec {
* Executable nodes for nested statements within the CompoundBody.
* @param label
* Label set by user to CompoundBody or None otherwise.
+ * @param isScope
+ * Flag that indicates whether Compound Body
Review Comment:
It is Compound Body but it is not scope. Comment was not completed, I
updated it now.
body1 is compound body but it is not a scope if it doesn't have `BEGIN` and
`END`.
```
IF condition THEN
body1;
END IF;
```
This compound body is scope (label is either defined by user or implicitly.
```
BEGIN
stmt1;
stmt2;
...
END
```
--
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]