itholic commented on code in PR #39625:
URL: https://github.com/apache/spark/pull/39625#discussion_r1073140160
##########
core/src/main/resources/error/error-classes.json:
##########
@@ -1719,7 +1708,7 @@
},
"WRONG_NUM_ARGS" : {
"message" : [
- "Invalid number of arguments for the function <functionName>."
+ "The <functionName> requires <expectedNum> parameters but the actual
number is <actualNum>."
Review Comment:
```
"Cannot resolve <sqlExpr> due to data type mismatch:"
```
I think `WRONG_NUM_ARGS` is not a sub-class of `DATATYPE_MISMATCH`, so we
don't need to follow the existing message from `DATATYPE_MISMATCH`.
Maybe
```
"The <functionName> requires <expectedNum> parameters but the actual number
is <actualNum>."
```
alone also can helpful for user to fix the problem ??
WDYT, @cloud-fan @srielau @MaxGekk ?
Do we want to show the `<sqlExpr>` in the error message as well??
--
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]