Skip to content

[SPARK-58274][SQL] Assign a name to the error condition _LEGACY_ERROR_TEMP_1068#57469

Draft
Ma77Ball wants to merge 2 commits into
apache:masterfrom
Ma77Ball:SPARK-58274-legacy-error-1068
Draft

[SPARK-58274][SQL] Assign a name to the error condition _LEGACY_ERROR_TEMP_1068#57469
Ma77Ball wants to merge 2 commits into
apache:masterfrom
Ma77Ball:SPARK-58274-legacy-error-1068

Conversation

@Ma77Ball

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Rename the legacy error condition _LEGACY_ERROR_TEMP_1068 to
CANNOT_USE_PRESERVED_DATABASE_AS_CURRENT (SQLSTATE 42000). Message text is unchanged.

Why are the changes needed?

The error-conditions README disallows new _LEGACY_ERROR_TEMP_* entries and asks
existing ones to be resolved. This resolves one.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Added a checkError test in QueryCompilationErrorsSuite. SparkThrowableSuite passes.

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

Co-authored with Claude Opus 4.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant