cloud-fan commented on a change in pull request #32850:
URL: https://github.com/apache/spark/pull/32850#discussion_r656218949
##########
File path: core/src/main/resources/error/error-classes.json
##########
@@ -0,0 +1,22 @@
+{
+ "DIVIDE_BY_ZERO_ERROR" : {
+ "sqlState" : "22012",
+ "message" : [ "divide by zero" ]
+ },
+ "DUPLICATE_KEY_ERROR" : {
+ "sqlState" : "23000",
+ "message" : [ "Found duplicate keys '%s'" ]
+ },
+ "MISSING_COLUMN_ERROR" : {
+ "sqlState" : "42000",
+ "message" : [ "cannot resolve '%s' given input columns: [%s]" ]
+ },
+ "SECOND_FUNCTION_ARGUMENT_NOT_INTEGER_ERROR" : {
+ "sqlState" : "22023",
+ "message" : [ "The second argument of '%s' function needs to be an
integer." ]
+ },
+ "WRITING_JOB_ABORTED_ERROR" : {
Review comment:
do we always need to put ERROR at the end of the error class?
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]