Skip to content

[SPARK-58228][SQL] Convert unreachable error condition _LEGACY_ERROR_TEMP_1058 to an internal error#57384

Open
Ma77Ball wants to merge 1 commit into
apache:masterfrom
Ma77Ball:assign-name-legacy-error-1058
Open

[SPARK-58228][SQL] Convert unreachable error condition _LEGACY_ERROR_TEMP_1058 to an internal error#57384
Ma77Ball wants to merge 1 commit into
apache:masterfrom
Ma77Ball:assign-name-legacy-error-1058

Conversation

@Ma77Ball

@Ma77Ball Ma77Ball commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Convert _LEGACY_ERROR_TEMP_1058 (raised in ResolveSessionCatalog when a table has both USING and a Hive SerDe) into a SparkException.internalError, and remove the condition from error-conditions.json plus its now-unused QueryCompilationErrors helper.

Part of SPARK-37935.

Why are the changes needed?

This branch is unreachable by users: the parser rejects USING + STORED AS/ROW FORMAT before analysis, and no DataFrame/Catalog API sets SerDe info. It can only fire if an invalid plan is built internally, so it is a bug guard, not a user error. Naming it as a user-facing condition would misclassify it; internalError is the correct classification.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

No new test (the path is unreachable from SQL). Existing DDLParserSuite (parser rejection) and SparkThrowableSuite (error-catalog consistency) pass.

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

Discovered-with: Claude Opus 4.8

@uros-b uros-b left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you @Ma77Ball! cc @MaxGekk @srielau

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.

2 participants