This is an automated email from the ASF dual-hosted git repository. wenchen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push: new 188e608caff [SPARK-42348][SQL] Add new SQLSTATE 188e608caff is described below commit 188e608caff442d229d44f940a6d3cedd7a7f850 Author: itholic <haejoon....@databricks.com> AuthorDate: Mon Feb 6 10:34:48 2023 +0800 [SPARK-42348][SQL] Add new SQLSTATE ### 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....@databricks.com> Signed-off-by: Wenchen Fan <wenc...@databricks.com> --- core/src/main/resources/error/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/src/main/resources/error/README.md b/core/src/main/resources/error/README.md index 2252ad30f8d..623c650ec57 100644 --- a/core/src/main/resources/error/README.md +++ b/core/src/main/resources/error/README.md @@ -857,6 +857,17 @@ The following SQLSTATEs are collated from: |42K09 |42 |Syntax Error or Access Rule Violation |K09 |Data type mismatch |Spark |N |Spark | |42K0A |42 |Syntax error or Access Rule violation |K0A |Invalid UNPIVOT clause |Spark |N |Spark | |42K0B |42 |Syntax error or Access Rule violation |K0B |Legacy feature blocked |Spark |N |Spark | +|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 | |42P01 |42 |Syntax error or Access Rule violation |P01 |undefined_table |PostgreSQL |N |PostgreSQL Redshift | |42P02 |42 |Syntax Error or Access Rule Violation |P02 |undefined_parameter |PostgreSQL |N |PostgreSQL Redshift | |42P03 |42 |Syntax Error or Access Rule Violation |P03 |duplicate_cursor |PostgreSQL |N |PostgreSQL Redshift | --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org