USER_DEFINED_FUNCTIONS error class
User defined function is invalid:
CANNOT_CONTAIN_COMPLEX_FUNCTIONS
SQL scalar function cannot contain aggregate, window, or generate functions: <queryText>
CANNOT_REPLACE_NON_SQL_UDF_WITH_SQL_UDF
Cannot replace the non-SQL function <name>
with a SQL function.
NOT_A_VALID_DEFAULT_EXPRESSION
The DEFAULT
expression of <functionName>
.<parameterName>
is not supported because it contains a subquery.
NOT_A_VALID_DEFAULT_PARAMETER_POSITION
In routine <functionName>
parameter <parameterName>
with DEFAULT
must not be followed by parameter <nextParameterName>
without DEFAULT
.
NOT_NULL_ON_FUNCTION_PARAMETERS
Cannot specify NOT NULL
on <languageName>
function parameters: <input>
RETURN_COLUMN_COUNT_MISMATCH
The number of columns produced by the RETURN
clause (num: <outputSize>
) does not match the number of column names specified by the RETURNS
clause (num: <returnParamSize>
) of <name>
.
SQL_TABLE_UDF_MISSING_COLUMN_NAMES
The relation returned by the query in the CREATE FUNCTION
statement for <functionName>
with RETURNS TABLE
clause lacks explicit names for one or more output columns; please rewrite the function body to provide explicit column names or add column names to the RETURNS TABLE
clause, and re-run the command.