LuciferYang commented on code in PR #38237:
URL: https://github.com/apache/spark/pull/38237#discussion_r998888882


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -168,6 +168,11 @@
           "The <functionName> accepts only arrays of pair structs, but 
<childExpr> is of <childType>."
         ]
       },
+      "NON_FOLDABLE_ENDPOINT" : {

Review Comment:
   Can `NON_FOLDABLE_INPUT` be reused?



##########
core/src/main/resources/error/error-classes.json:
##########
@@ -243,6 +253,11 @@
           "The <exprName> must be between <valueRange> (current value = 
<currentValue>)"
         ]
       },
+      "WRONG_NUM_ENDPOINTS" : {

Review Comment:
   Can `WRONG_NUM_PARAMS` be reused?



##########
core/src/main/resources/error/error-classes.json:
##########
@@ -223,6 +228,11 @@
           "The lower bound of a window frame must be <comparison> to the upper 
bound."
         ]
       },
+      "UNEXPECTED_ENDPOINT_TYPE" : {
+        "message" : [
+          "Endpoints require (numeric or \"TIMESTAMP\" or \"DATE\" or 
\"TIMESTAMP_NTZ\" or \"INTERVAL YEAR TO MONTH\" or \"INTERVAL DAY TO SECOND\") 
type."

Review Comment:
   Can `UNEXPECTED_INPUT_TYPE` be reused?
   
   Or Should we change `numeric or \"TIMESTAMP\" or \"DATE\" or 
\"TIMESTAMP_NTZ\" or \"INTERVAL YEAR TO MONTH\" or \"INTERVAL DAY TO SECOND\"`  
 to a placeholder?



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