MaxGekk commented on code in PR #41864:
URL: https://github.com/apache/spark/pull/41864#discussion_r1253551872
##########
common/utils/src/main/resources/error/error-classes.json:
##########
@@ -2333,6 +2354,11 @@
],
"sqlState" : "428C4"
},
+ "UNRECOGNIZED_PARAMETER_NAME" : {
+ "message" : [
+ "Cannot invoke function <functionName> because the function call
included a named argument reference for the argument named <argumentName>, but
this function does not include any signature containing an argument with this
name."
Review Comment:
Could you help users and propose function parameters sorted by levenshtein
distance? See for instance:
https://github.com/apache/spark/blob/d9c2d38f14a400ea078492d770b749f506a8401c/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/StringUtils.scala#L80
##########
common/utils/src/main/resources/error/error-classes.json:
##########
@@ -1781,6 +1787,11 @@
"Not allowed to implement multiple UDF interfaces, UDF class
<className>."
]
},
+ "NAMED_ARGUMENTS_NOT_SUPPORTED" : {
+ "message" : [
+ "Named arguments are not supported for function <functionName>; please
retry the query with positional arguments to the function call instead."
Review Comment:
or enable the feature using the SQL config ...?
--
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]