Skip to content

[SPARK-59437][SQL] Assign a name to the error condition _LEGACY_ERROR_TEMP_1060 - #58750

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

[SPARK-59437][SQL] Assign a name to the error condition _LEGACY_ERROR_TEMP_1060#58750
Ma77Ball wants to merge 1 commit into
apache:masterfrom
Ma77Ball:assign-name-legacy-error-1060

Conversation

@Ma77Ball

@Ma77Ball Ma77Ball commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Rename the legacy error condition _LEGACY_ERROR_TEMP_1060 to the named subclass UNSUPPORTED_FEATURE.NESTED_COLUMN (SQLSTATE 0A000). It is raised when a command such as DESC TABLE COLUMN or JDBC filter push down is given a nested column it cannot operate on.

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 (part of SPARK-37935).

Does this PR introduce any user-facing change?

Yes. The condition becomes UNSUPPORTED_FEATURE.NESTED_COLUMN, and the rendered message gains the standard The feature is not supported: prefix and quotes the column with backticks, e.g. The feature is not supported: DESC TABLE COLUMN does not support nested column `col.x`.

How was this patch tested?

Updated the existing checkError test in DataSourceV2SQLSuite and converted the message assertion in DescribeTableSuiteBase to checkError. SparkThrowableSuite passes.

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

Co-authored with Claude Opus 4.8

@Ma77Ball
Ma77Ball force-pushed the assign-name-legacy-error-1060 branch from bb445ff to 77db7e7 Compare September 12, 2026 08:57
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