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


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -119,6 +119,33 @@
     "message" : [ "The fraction of sec must be zero. Valid range is [0, 60]. 
If necessary set <config> to false to bypass this error. " ],
     "sqlState" : "22023"
   },
+  "INVALID_FUNCTION_ARGUMENTS" : {

Review Comment:
   Would it be possible to use the existing error class 
`INVALID_PARAMETER_VALUE`?



##########
core/src/main/resources/error/error-classes.json:
##########
@@ -119,6 +119,33 @@
     "message" : [ "The fraction of sec must be zero. Valid range is [0, 60]. 
If necessary set <config> to false to bypass this error. " ],
     "sqlState" : "22023"
   },
+  "INVALID_FUNCTION_ARGUMENTS" : {
+    "message" : [ "The function arguments invalid: " ],

Review Comment:
   As I can see, every sub-class repeats function name. I would propose to add 
the function name to the base class, like:
   ```json
     "message" : [ "Arguments of the <funcName> function are invalid: " ],
   ```



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