This is an automated email from the ASF dual-hosted git repository.
gurwls223 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 39c012ec5942 [SPARK-45562][SQL][FOLLOW-UP] XML: Fix SQLSTATE for
missing rowTag error
39c012ec5942 is described below
commit 39c012ec5942c89488002c675d7390554b88a9ce
Author: Sandip Agarwala <[email protected]>
AuthorDate: Wed Nov 15 11:09:45 2023 +0900
[SPARK-45562][SQL][FOLLOW-UP] XML: Fix SQLSTATE for missing rowTag error
### What changes were proposed in this pull request?
Fix the SQLSTATE for missing rowTag error added in this
[PR](https://github.com/apache/spark/pull/43710).
### Why are the changes needed?
Same as above
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Unit test
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #43804 from sandip-db/xml-rowTagRequiredError-sqlstate.
Authored-by: Sandip Agarwala <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
common/utils/src/main/resources/error/error-classes.json | 2 +-
docs/sql-error-conditions.md | 6 ------
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/common/utils/src/main/resources/error/error-classes.json
b/common/utils/src/main/resources/error/error-classes.json
index 1b4c10acaf7b..ed187d376d28 100644
--- a/common/utils/src/main/resources/error/error-classes.json
+++ b/common/utils/src/main/resources/error/error-classes.json
@@ -3921,7 +3921,7 @@
"message" : [
"<rowTag> option is required for reading files in XML format."
],
- "sqlState" : "42000"
+ "sqlState" : "42KDF"
},
"_LEGACY_ERROR_TEMP_0001" : {
"message" : [
diff --git a/docs/sql-error-conditions.md b/docs/sql-error-conditions.md
index ee9c2fd67b30..f23b4fb78b6b 100644
--- a/docs/sql-error-conditions.md
+++ b/docs/sql-error-conditions.md
@@ -2375,9 +2375,3 @@ The operation `<operation>` requires a `<requiredType>`.
But `<objectName>` is a
The `<functionName>` requires `<expectedNum>` parameters but the actual number
is `<actualNum>`.
For more details see
[WRONG_NUM_ARGS](sql-error-conditions-wrong-num-args-error-class.html)
-
-### XML_ROW_TAG_MISSING
-
-[SQLSTATE:
42000](sql-error-conditions-sqlstates.html#class-42-syntax-error-or-access-rule-violation)
-
-`<rowTag>` option is required for reading files in XML format.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]