New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-42348][SQL] Add new SQLSTATE #39886
Conversation
|42KD0 |42 |Syntax error or Access Rule violation |KD0 |Ambiguous name reference. |Databricks |N |Databricks | | ||
|42KD1 |42 |Syntax error or Access Rule violation |KD1 |Operation not supported in READ ONLY session mode. |Databricks |N |Databricks | | ||
|42KD2 |42 |Syntax error or Access Rule violation |KD2 |The source and target table names of a SYNC operaton must be the same.|Databricks |N |Databricks | | ||
|42KD3 |42 |Syntax error or Access Rule violation |KD3 |A column can not be added as specified. |Databricks |N |Databricks | | ||
|42KD4 |42 |Syntax error or Access Rule violation |KD4 |Operation not supported because table schema has changed. |Databricks |N |Databricks | | ||
|42KD5 |42 |Syntax error or Access Rule violation |KD5 |Cannot create file or path. |Databricks |N |Databricks | | ||
|42KD6 |42 |Syntax error or Access Rule violation |KD6 |No partition information found. |Databricks |N |Databricks | | ||
|42KD7 |42 |Syntax error or Access Rule violation |KD7 |Table signature mismatch. |Databricks |N |Databricks | | ||
|42KD8 |42 |Syntax error or Access Rule violation |KD8 |Column position out of range. |Databricks |N |Databricks | | ||
|42KD9 |42 |Syntax error or Access Rule violation |KD9 |Cannot infer table schema. |Databricks |N |Databricks | | ||
|42KDA |42 |Syntax error or Access Rule violation |KDA |Failed to merge file into table schema. |Databricks |N |Databricks | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @srielau do we want to add those SQLSTATE to core/src/main/resources/error/README.md
?
Otherwise, we can't use them in error class because we only allow the SQLSTATE specified in core/src/main/resources/error/README.md
.
For example, we cannot apply #39871 (comment).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also cc @MaxGekk @cloud-fan
thanks, merging to master/3.4! |
### What changes were proposed in this pull request? This PR proposes to add new SQLSTATE defined from Databricks to `core/src/main/resources/error/README.md`. ### Why are the changes needed? We should use proper SQLSTATE for every SQL error classes. Otherwise, it fails on `SparkThrowableSuite.SQLSTATE invariants` test. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? The existing CI should pass. Closes #39886 from itholic/MISSING_SQLSTATE. Authored-by: itholic <haejoon.lee@databricks.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit 188e608) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
### What changes were proposed in this pull request? This PR proposes to add new SQLSTATE defined from Databricks to `core/src/main/resources/error/README.md`. ### Why are the changes needed? We should use proper SQLSTATE for every SQL error classes. Otherwise, it fails on `SparkThrowableSuite.SQLSTATE invariants` test. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? The existing CI should pass. Closes apache#39886 from itholic/MISSING_SQLSTATE. Authored-by: itholic <haejoon.lee@databricks.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit 188e608) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
What changes were proposed in this pull request?
This PR proposes to add new SQLSTATE defined from Databricks to
core/src/main/resources/error/README.md
.Why are the changes needed?
We should use proper SQLSTATE for every SQL error classes.
Otherwise, it fails on
SparkThrowableSuite.SQLSTATE invariants
test.Does this PR introduce any user-facing change?
No.
How was this patch tested?
The existing CI should pass.