Skip to content

[SPARK-55816][SQL] Rename _LEGACY_ERROR_TEMP_3058 to DUPLICATE_PARTITION_TRANSFORM with SQL state 42711#54596

Open
miland-db wants to merge 2 commits intoapache:masterfrom
miland-db:milan-dankovic_data/check-transform-duplication
Open

[SPARK-55816][SQL] Rename _LEGACY_ERROR_TEMP_3058 to DUPLICATE_PARTITION_TRANSFORM with SQL state 42711#54596
miland-db wants to merge 2 commits intoapache:masterfrom
miland-db:milan-dankovic_data/check-transform-duplication

Conversation

@miland-db
Copy link
Contributor

What changes were proposed in this pull request?

This PR adds a proper error class and SQL state for the checkTransformDuplication exception in SchemaUtils.

Changes:

  • Added DUPLICATE_PARTITION_TRANSFORM error class to error-conditions.json with SQL state 42711
  • Updated SchemaUtils.checkTransformDuplication() to use the new error class
  • Removed _LEGACY_ERROR_TEMP_3058 legacy error class

Why are the changes needed?

Previously, this error used _LEGACY_ERROR_TEMP_3058 without a SQL state, making it harder
to identify and handle programmatically in error monitoring systems.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Updated DataSourceV2SQLSuite tests to check for new error class.

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

No.

@miland-db miland-db changed the title [SPARK-55816][SQL] Rename _LEGACY_ERROR_TEMP_3058 to DUPLICATE_PARTITION_TRANSFORM with SQL state 42000 [SPARK-55816][SQL] Rename _LEGACY_ERROR_TEMP_3058 to DUPLICATE_PARTITION_TRANSFORM with SQL state 42711 Mar 3, 2026
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