-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[WIP][SPARK-53621][CORE] Adding Support for Executing CONTINUE HANDLER #52371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
fbd0237
4e5ae21
be0b3f2
d6d7858
5963742
50f23c7
5cdd546
37322c2
a4047f9
6db58f0
a29f4bc
5920740
e9b0abe
c08d166
17cede6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) { | ||
Comment on lines
+91
to
+92
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't get this change. We either leave the if as is or we remove the condition, as these are the only 2 possible handler types. Not sure if we need this label in a CONTINUE handler though, cc @miland-db what is this label used for again? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's the label of the scope where exception handler is defined. @TeodorDjelic as you go through code feel free to add even more comments explaining what's going on. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like a great place for it. |
||
Some(compoundBody.label.get) | ||
} else { | ||
None | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO this
ExceptionHandlerType.EXIT/CONTINUE
andSqlScriptingFrameType.EXIT_HANDLER/CONTINUE_HANDLER
is a bit confusing. We should maybe find a way to reuse information about handler type in execution frame. Let's discuss this offline first.