This is an automated email from the ASF dual-hosted git repository.
maxgekk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 780759b70245 [SPARK-48357][SQL][FOLLOW-UP] Add doc comment for LOOP
statement exec node
780759b70245 is described below
commit 780759b702455ee0ff5812ad03023d5f0dadbc00
Author: Dušan Tišma <[email protected]>
AuthorDate: Fri Oct 4 14:38:36 2024 +0200
[SPARK-48357][SQL][FOLLOW-UP] Add doc comment for LOOP statement exec node
### What changes were proposed in this pull request?
As title.
### Why are the changes needed?
Missing comment for LOOP exec node
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Not required.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #48348 from dusantism-db/scripting-loop-followup.
Authored-by: Dušan Tišma <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
---
.../org/apache/spark/sql/scripting/SqlScriptingExecutionNode.scala | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingExecutionNode.scala
b/sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingExecutionNode.scala
index 9fdb9626556f..3f8b0f1583ad 100644
---
a/sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingExecutionNode.scala
+++
b/sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingExecutionNode.scala
@@ -593,6 +593,11 @@ class IterateStatementExec(val label: String) extends
LeafStatementExec {
override def reset(): Unit = hasBeenMatched = false
}
+/**
+ * Executable node for LoopStatement.
+ * @param body Executable node for the body, executed on every loop iteration.
+ * @param label Label set to LoopStatement by user, None if not set.
+ */
class LoopStatementExec(
body: CompoundBodyExec,
val label: Option[String]) extends NonLeafStatementExec {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]