-
Notifications
You must be signed in to change notification settings - Fork 28.8k
[SPARK-53537][Core] Adding Support for Parsing CONTINUE HANDLER #52298
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
Conversation
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/SqlScriptingParserSuite.scala
Show resolved
Hide resolved
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/SqlScriptingParserSuite.scala
Show resolved
Hide resolved
Hey @cloud-fan, should we create a temporary |
yes, please add temp config to hide half baked features. |
… as a continue handler feature switch;
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
Outdated
Show resolved
Hide resolved
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.
LGTM
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.
LGTM, good job with the thorough tests!
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/SqlScriptingParserSuite.scala
Show resolved
Hide resolved
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/SqlScriptingParserSuite.scala
Show resolved
Hide resolved
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/SqlScriptingParserSuite.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/SqlScriptingParserSuite.scala
Outdated
Show resolved
Hide resolved
sql/core/src/test/scala/org/apache/spark/sql/scripting/SqlScriptingInterpreterSuite.scala
Outdated
Show resolved
Hide resolved
…onf.scala Co-authored-by: Wenchen Fan <[email protected]>
…onf.scala Co-authored-by: Wenchen Fan <[email protected]>
…er/SqlScriptingParserSuite.scala Co-authored-by: Wenchen Fan <[email protected]>
…ptingInterpreterSuite.scala Co-authored-by: Wenchen Fan <[email protected]>
thanks, merging to master! |
What changes were proposed in this pull request?
This PR lays the foundation for implementing support for
CONTINUE HANDLER
.CONTINUE HANDLER
no longer throws an exception that it is not supported, and now behaves like anEXIT HANDLER
.Feature is under a new feature switch
spark.sql.scripting.continueHandlerEnabled
insideSQLConfig.scala
.Why are the changes needed?
We want to add support for executing
CONTINUE HANDLER
. This feature is supported in documentation, but is not supported as of now inside SQL Scripts. Change is supposed to enable parsing ofCONTINUE HANDLER
.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Tests were added to
SqlScriptingInterpreterSuite.scala
andSqlScriptingParserSuite.scala
to facilitate theCONTINUE HANDLER
.Both test suites have
spark.sql.scripting.continueHandlerEnabled
config entry set totrue
before all tests, and unset after all of the tests have been run.Was this patch authored or co-authored using generative AI tooling?
No.