Skip to main content

UDF_USER_CODE_ERROR error condition

SQLSTATE: 39000

Execution of function <fn> failed.

CLASS_NOT_FOUND​

Could not find <type> <className> in the provided JAR file. Ensure the class exists in the JAR and that the handler path is correct.

CREDENTIAL_NOT_FOUND​

The requested service credential was not found. <detail>

DBCONNECT_UNSUPPORTED​

DBConnect version <version> is unsupported for Serverless Scala UDFs.

<error>

GENERIC​

== Error ==

<error>

== Stacktrace ==

<stack>

HANDLER_INPUT_SCHEMA​

Cannot find handler with name <handler> matching the schema <inputSchema>. Possible candidates: <candidates>.

HANDLER_MULTIPLE_CANDIDATES​

There are multiple methods with name <handler> matching the input schema <inputSchema>: <candidates>.

HANDLER_NOT_PUBLIC​

The handler <type> <handler> is not public. Java UDF handlers must be public.

HANDLER_NOT_STATIC​

The method <method> in handler <handler> is not static. Java UDF handler methods must be public and static.

HANDLER_RETURN_TYPE​

Cannot convert return type <returnType> of handler <handler> to the expected SQL type <sqlReturnType>.

HANDLER_UNKNOWN​

Cannot find handler with name <handler>. Check that this handler exists in UDF dependencies.

INPUT_CONVERSION​

== Error ==

<error>

INTERNAL_MEMORY_LIMIT​

The internal memory limit has been reached. Consider reducing the size of each row passed to the UDF.

LANGUAGE_MISMATCH​

The specified language (<specifiedLanguage>) does not match the actual language of the handler (<actualLanguage>). Update the language in your UDF definition.

OOM​

Function ran out of memory during execution.

This may be caused by excessive memory usage of the running code.

PAYLOAD​

<error>

PAYLOAD_SIZE​

The UDF payload is too large (<actualPayloadSize> bytes, limit is <maxPayloadSize> bytes).

RESULT_CONVERSION​

Consider changing the function to return a value that fits the return type.

== Error ==

<error>

SCALA_VERSION_MISMATCH​

The UDF or its dependencies are compiled with Scala 2.12, which is incompatible with this compute environment (Scala 2.13). Recompile with Scala 2.13.

<detail>

SECRET_NOT_DECLARED​

Secret <secret> is not declared in the SECRETS clause of this function. Add it to the SECRETS clause in the function definition.

SECRET_NOT_FOUND​

The requested secret was not found. <detail>

UDF_CLASS_MISSING​

== Error ==

<error>

Please see <docLink> for information on how to fix this.

== Stacktrace ==

<stack>