cloud-fan commented on code in PR #49126:
URL: https://github.com/apache/spark/pull/49126#discussion_r1890204739
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -5592,6 +5610,54 @@
],
"sqlState" : "42K0E"
},
+ "USER_DEFINED_FUNCTIONS" : {
+ "message" : [
+ "User defined function is invalid:"
+ ],
+ "subClass" : {
+ "CANNOT_CONTAIN_COMPLEX_FUNCTIONS" : {
+ "message" : [
+ "SQL scalar function cannot contain aggregate/window/generate
functions: <queryText>"
+ ]
+ },
+ "CANNOT_REPLACE_NON_SQL_UDF_WITH_SQL_UDF" : {
+ "message" : [
+ "Cannot replace the non-SQL function <name> with a SQL function."
+ ]
+ },
+ "NOT_A_VALID_DEFAULT_EXPRESSION" : {
+ "message" : [
+ "The DEFAULT expression of `<functionName>`.`<parameterName>` is not
supported because it contains a subquery."
+ ]
+ },
+ "NOT_A_VALID_DEFAULT_PARAMETER_POSITION" : {
+ "message" : [
+ "In routine `<functionName>` parameter `<parameterName>` with
DEFAULT must not be followed by parameter `<nextParameterName>` without
DEFAULT."
+ ]
+ },
+ "NOT_NULL_ON_FUNCTION_PARAMETERS" : {
+ "message" : [
+ "Cannot specify NOT NULL on <languageName> function parameters:
<input>"
Review Comment:
do we really need to call out the language name when reporting error for the
function parameters?
--
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]