MaxGekk commented on code in PR #44968:
URL: https://github.com/apache/spark/pull/44968#discussion_r1476032744


##########
common/utils/src/main/resources/error/error-classes.json:
##########
@@ -451,6 +451,12 @@
     ],
     "sqlState" : "42704"
   },
+  "COLLATION_INVALID_NAME" : {
+    "message" : [
+      "The value <collationName> does not represent correct collation name."
+    ],
+    "sqlState" : "22018"

Review Comment:
   > I just checked PGSql and it returns "42704 - undefined_object Should we do 
the same?
   
   The `42` SQLSTATE class seems reasonable: `"42": "Syntax Error or Access 
Rule Violation",`. The `42704` itself is a little bit generic but might be 
suitable. 



-- 
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