Skip to content

[SPARK-55866][SQL] Rename _LEGACY_ERROR_TEMP_2145 to OPTION_VALUE_EXCEEDS_ONE_CHARACTER#54662

Open
mikhailnik-db wants to merge 1 commit intoapache:masterfrom
mikhailnik-db:option-value-exceeds-one-character
Open

[SPARK-55866][SQL] Rename _LEGACY_ERROR_TEMP_2145 to OPTION_VALUE_EXCEEDS_ONE_CHARACTER#54662
mikhailnik-db wants to merge 1 commit intoapache:masterfrom
mikhailnik-db:option-value-exceeds-one-character

Conversation

@mikhailnik-db
Copy link
Contributor

What changes were proposed in this pull request?

Rename the legacy error condition _LEGACY_ERROR_TEMP_2145 to a proper error class OPTION_VALUE_EXCEEDS_ONE_CHARACTER with SQL state 22023 (invalid parameter value).

Why is the change needed?

_LEGACY_ERROR_TEMP_2145 is a legacy placeholder error name. It should be replaced with a descriptive error class name and assigned a proper SQL state to improve error reporting and comply with the ANSI SQL standard.

Does this PR introduce any user-facing change?

Yes. The error condition name changes from _LEGACY_ERROR_TEMP_2145 to OPTION_VALUE_EXCEEDS_ONE_CHARACTER and now includes SQL state 22023. The error message itself remains unchanged.

How was this patch tested?

Existing tests.

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

Generated-by: Claude Code 2.1.70

…ACTER

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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