SYSTEM ADMIN or ADMIN
permission on all UDFs will see all current & historical UDF runs, while users
with EXECUTE or ADMIN permissions on individual UDFs will only see the
current & historical runs for UDFs/UDTFs that they have executed themselves.
Historical run data is preserved when a UDF/UDTF is executed with the
KI_HINT_SAVE_UDF_STATS hint.
SHOW FUNCTION STATUS Syntax
Parameters
VERBOSE
VERBOSE
Specifies verbose output mode. This modifies the response as noted below.
FOR '<run ID>'
FOR '<run ID>'
Specifies that only the status of UDF/UDTF execution with run ID
<run ID> should be output.The response to
SHOW FUNCTION STATUS depends on whether the
VERBOSE option was specified.-
No
VERBOSE- output is a three-column result set:FUNCTION_NAME- name of the UDF/UDTFRUN_ID- ID associated with a given execution of the UDF/UDTFOVERALL_STATUS- completion status of UDF/UDTF
-
VERBOSE- output is a single-column, single-row result set with a list of all UDF/UDTF statuses, each as a formatted block of information in theFUNCTION_STATUSEScolumn
Examples
To show the status of all UDF/UDTF runs:SHOW FUNCTION STATUS Example
SHOW FUNCTION STATUS By Run ID Example