uros-b commented on code in PR #56871:
URL: https://github.com/apache/spark/pull/56871#discussion_r3496980536


##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -5262,6 +5262,12 @@
     },
     "sqlState" : "42000"
   },
+  "INVALID_XML_SCHEMA_MAP_TYPE" : {
+    "message" : [
+      "Input schema <xmlSchema> can only contain STRING as a key type for a 
MAP."
+    ],
+    "sqlState" : "22032"

Review Comment:
   SQLSTATE 22032 is "invalid JSON text" (SQL/Foundation). Perhaps a SQL/XML 
state (e.g. 2200N) would be more semantically precise for an XML error. 
@szehon-ho @srielau WDYT?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to