You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2023/01/13 22:32:34 UTC

[GitHub] [spark] srielau commented on a diff in pull request #39537: [SPARK-41994] [DRAFT] Assign SQLSTATE's (1/?)

srielau commented on code in PR #39537:
URL: https://github.com/apache/spark/pull/39537#discussion_r1070133871


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -758,22 +782,26 @@
   "INVALID_IDENTIFIER" : {
     "message" : [
       "The identifier <ident> is invalid. Please, consider quoting it with back-quotes as `<ident>`."
-    ]
+    ],
+    "sqlState" : "22602"

Review Comment:
   ```suggestion
       "sqlState" : "42602"
   ```



##########
core/src/main/resources/error/error-classes.json:
##########
@@ -828,12 +858,14 @@
   "INVALID_PROPERTY_KEY" : {
     "message" : [
       "<key> is an invalid property key, please use quotes, e.g. SET <key>=<value>"
-    ]
+    ],
+    "sqlState" : "22602"
   },
   "INVALID_PROPERTY_VALUE" : {
     "message" : [
       "<value> is an invalid property value, please use quotes, e.g. SET <key>=<value>"
-    ]
+    ],
+    "sqlState" : "22602"

Review Comment:
   ```suggestion
       "sqlState" : "42602"
   ```



##########
core/src/main/resources/error/error-classes.json:
##########
@@ -828,12 +858,14 @@
   "INVALID_PROPERTY_KEY" : {
     "message" : [
       "<key> is an invalid property key, please use quotes, e.g. SET <key>=<value>"
-    ]
+    ],
+    "sqlState" : "22602"

Review Comment:
   ```suggestion
       "sqlState" : "42602"
   ```



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org