Skip to content

[SPARK-55812][SQL] Consolidate dataSchemaNotSpecifiedError to use UNABLE_TO_INFER_SCHEMA#54591

Open
miland-db wants to merge 1 commit intoapache:masterfrom
miland-db:milan-dankovic_data/data-schema-not-specified
Open

[SPARK-55812][SQL] Consolidate dataSchemaNotSpecifiedError to use UNABLE_TO_INFER_SCHEMA#54591
miland-db wants to merge 1 commit intoapache:masterfrom
miland-db:milan-dankovic_data/data-schema-not-specified

Conversation

@miland-db
Copy link
Contributor

@miland-db miland-db commented Mar 3, 2026

What changes were proposed in this pull request?

This PR consolidates the 2-parameter overload of dataSchemaNotSpecifiedError to use the existing UNABLE_TO_INFER_SCHEMA error class (SQL state 42KD9).

Changes:

  • Updated the 2-parameter dataSchemaNotSpecifiedError() method to delegate to the 1-parameter version
  • Removed _LEGACY_ERROR_TEMP_1134 from error-conditions.json

Previously, the 2-parameter overload used _LEGACY_ERROR_TEMP_1134 with no SQL state, while the 1-parameter version already used UNABLE_TO_INFER_SCHEMA with SQL state 42KD9.

Why are the changes needed?

This is needed to ensure reliable error reporting.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

The 1-parameter version already has comprehensive test coverage via UNABLE_TO_INFER_SCHEMA.

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

No.

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