Skip to content
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

[SPARK-48353][SQL] Introduction of Error Handling mechanism GRAMMAR in SQL Scripting #49427

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

miland-db
Copy link
Contributor

What changes were proposed in this pull request?

This pull request introduces the logic of error handling inside SQL Scripting language. Now, it is possible to:

  • declare conditions for specific SQL States
  • declare handlers to catch and process errors that are risen during statement execution

Why are the changes needed?

The intent is to add the possibility for user to handle SQL errors in a custom defined way..

Does this PR introduce any user-facing change?

No.

How was this patch tested?

There are already existing test suites for SQL scripting that have been improved to test new functionalities:

  • SqlScriptingParserSuite

Was this patch authored or co-authored using generative AI tooling?

No.

@miland-db miland-db marked this pull request as draft January 9, 2025 18:43
# Conflicts:
#	common/utils/src/main/resources/error/error-conditions.json
#	sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingExecution.scala
#	sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/ThriftServerWithSparkContextSuite.scala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant