TeodorDjelic commented on code in PR #52371:
URL: https://github.com/apache/spark/pull/52371#discussion_r2388722790


##########
sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingInterpreter.scala:
##########
@@ -88,7 +88,8 @@ case class SqlScriptingInterpreter(session: SparkSession) {
           context)
 
       // Execution node of handler.
-      val handlerScopeLabel = if (handler.handlerType == 
ExceptionHandlerType.EXIT) {
+      val handlerScopeLabel = if (handler.handlerType == 
ExceptionHandlerType.EXIT
+                                  || handler.handlerType == 
ExceptionHandlerType.CONTINUE) {

Review Comment:
   @dusantism-db  is correct, in this implementation since we only have these 2 
types of handlers, handlerScopeLabel is always going to be set to 
Some(compoundBody.label.get). This will be simplified.



-- 
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]

Reply via email to