You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "miland-db (via GitHub)" <gi...@apache.org> on 2025/09/29 15:11:39 UTC
Re: [PR] [SPARK-53621][CORE] Adding Support for Executing CONTINUE HANDLER [spark]
miland-db commented on code in PR #52371:
URL: https://github.com/apache/spark/pull/52371#discussion_r2388343224
##########
sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingExecution.scala:
##########
@@ -86,6 +86,25 @@ class SqlScriptingExecution(
currExecPlan.curr = Some(new LeaveStatementExec(label))
}
+ /**
+ * Helper method to execute interrupts to ConditionalStatements.
+ * @param executionPlan Execution plan.
+ */
+ private def interruptConditionalStatements(executionPlan: NonLeafStatementExec): Unit = {
+ // Go as deep as possible, to find a leaf node. Instead of a statement that
+ // should be executed next, skip a conditional statement in.
Review Comment:
nit: let's make this comment easier to understand, and format it properly
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org