Skip to content

Conversation

TeodorDjelic
Copy link
Contributor

@TeodorDjelic TeodorDjelic commented Sep 10, 2025

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 an EXIT HANDLER.

Feature is under a new feature switch spark.sql.scripting.continueHandlerEnabled inside SQLConfig.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 of CONTINUE HANDLER.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Tests were added to SqlScriptingInterpreterSuite.scala and SqlScriptingParserSuite.scala to facilitate the CONTINUE HANDLER.

Both test suites have spark.sql.scripting.continueHandlerEnabled config entry set to true 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.

@github-actions github-actions bot added the SQL label Sep 10, 2025
@miland-db
Copy link
Contributor

Hey @cloud-fan, should we create a temporary SQLConf to guard usage of CONTINUE HANDLER until it's fully supported? Current PR enables it in parsing and creates tests, but it will have the same behavior as EXIT HANDLER. We want to incrementally introduce changes to fully support CONTINUE HANDLER, but users should not use it in the meantime.

@TeodorDjelic TeodorDjelic changed the title Adding Support for Parsing CONTINUE HANDLER [SPARK-53537][Core] Adding Support for Parsing CONTINUE HANDLER Sep 10, 2025
@cloud-fan
Copy link
Contributor

yes, please add temp config to hide half baked features.

Copy link
Contributor

@miland-db miland-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@dusantism-db dusantism-db left a 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!

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 54dee4a Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants