Skip to content

[SPARK-49952][SQL] Assign proper error condition for _LEGACY_ERROR_TEMP_1142#48451

Closed
itholic wants to merge 2 commits intoapache:masterfrom
itholic:SPARK-49952
Closed

[SPARK-49952][SQL] Assign proper error condition for _LEGACY_ERROR_TEMP_1142#48451
itholic wants to merge 2 commits intoapache:masterfrom
itholic:SPARK-49952

Conversation

@itholic
Copy link
Contributor

@itholic itholic commented Oct 14, 2024

What changes were proposed in this pull request?

This PR proposes to assign proper error condition & sqlstate for _LEGACY_ERROR_TEMP_1142

Why are the changes needed?

To improve the error message by assigning proper error condition and SQLSTATE

Does this PR introduce any user-facing change?

No, only user-facing error message improved

How was this patch tested?

Updated the existing tests

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

No

@github-actions github-actions bot added the SQL label Oct 14, 2024
errorClass = "_LEGACY_ERROR_TEMP_1142",
messageParameters = Map.empty)
errorClass = "EMPTY_SCHEMA_NOT_SUPPORTED_FOR_DATASOURCE",
messageParameters = Map("format" -> format))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added format name into error message. cc @MaxGekk fyi

@MaxGekk
Copy link
Member

MaxGekk commented Oct 14, 2024

+1, LGTM. Merging to master.
Thank you, @itholic.

@MaxGekk MaxGekk closed this in d53fa23 Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants