Schema:

ORGANIZATION_USAGE

For guidance on query performance when using organization-wide usage views, see Performance (Organization Usage).

FUNCTIONS view

Important

This view is only available in the organization account. For more information, see Premium views in the organization account.

Organization Usage performance

When you query a specific view in the SNOWFLAKE.ORGANIZATION_USAGE schema, follow the organization-wide guidance in Performance (Organization Usage): bound every scan on history views, list columns explicitly, and use the time filter column table plus worked SQL and anti-patterns there.

This Organization Usage view displays a row for each user-defined function (UDF) defined in an account.

For more information about UDFs, see User-defined functions overview.

Columns

Organization-level columns

Column NameData TypeDescription
ORGANIZATION_NAMEVARCHARName of the organization.
ACCOUNT_LOCATORVARCHARSystem-generated identifier for the account.
ACCOUNT_NAMEVARCHARUser-defined identifier for the account.

Additional columns

Column NameData TypeDescription
FUNCTION_IDNUMBERInternal/system-generated identifier for the UDF.
FUNCTION_NAMEVARCHARName of the UDF.
FUNCTION_SCHEMA_IDNUMBERInternal/system-generated identifier for the schema of the UDF.
FUNCTION_SCHEMAVARCHARSchema which the UDF belongs to.
FUNCTION_CATALOG_IDNUMBERInternal/system-generated identifier for the database of the UDF.
FUNCTION_CATALOGVARCHARDatabase which the UDF belongs to.
FUNCTION_OWNERVARCHARName of the role that owns the UDF.
ARGUMENT_SIGNATUREVARCHARType signature of the UDF’s arguments.
DATA_TYPEVARCHARReturn value data type.
CHARACTER_MAXIMUM_LENGTHNUMBERMaximum length in characters of string return value.
CHARACTER_OCTET_LENGTHNUMBERMaximum length in bytes of string return value.
NUMERIC_PRECISIONNUMBERNumeric precision of numeric return value.
NUMERIC_PRECISION_RADIXNUMBERRadix of precision of numeric return value.
NUMERIC_SCALENUMBERScale of numeric return value.
FUNCTION_LANGUAGEVARCHARLanguage of the UDF.
FUNCTION_DEFINITIONVARCHARUDF definition.
VOLATILITYVARCHARWhether the UDF is volatile or immutable.
IS_NULL_CALLVARCHARWhether the UDF is called when input is null.
CREATEDTIMESTAMP_LTZDate and time when the UDF was created.
LAST_ALTEREDTIMESTAMP_LTZDate and time the object was last altered by a DML, DDL, or background metadata operation. See Usage Notes.
DELETEDTIMESTAMP_LTZDate and time when the UDF was dropped.
COMMENTVARCHARComment for the function.
IS_EXTERNAL [1]VARCHAR(3)YES if the function is an external function; otherwise, NO.
API_INTEGRATION [1]VARCHARName of the API integration object to authenticate the call to the proxy service.
CONTEXT_HEADERS [1]VARCHARContext header information for the external function.
MAX_BATCH_ROWS [1]NUMBERMaximum number of rows in each batch sent to the proxy service.
COMPRESSION [1]VARCHARType of compression.
PACKAGESVARCHARPackages requested by the function.
RUNTIME_VERSIONVARCHARRuntime version of the language used by the function. NULL if the function is SQL or JavaScript.
INSTALLED_PACKAGESVARCHARAll packages installed by the function. Output for Python functions only.
OWNER_ROLE_TYPEVARCHARThe type of role that owns the object, for example ROLE.
If a Snowflake Native App owns the object, the value is APPLICATION.
Snowflake returns NULL if you delete the object because a deleted object does not have an owner role.
IS_MEMOIZABLEVARCHAR(3)YES if the function is memoizable; otherwise, NO.
IS_DATA_METRICVARCHAR(3)YES if the function is a data metric function; otherwise, NO.
SECRETSJSON mapMap of secrets specified by the function’s SECRETS parameter, where map keys are secret variable names and map values are secret object names.
EXTERNAL_ACCESS_INTEGRATIONSVARCHARNames of external access integrations specified by the function’s EXTERNAL_ACCESS_INTEGRATION parameter.
IS_AGGREGATEVARCHAR(3)YES if the function is an aggregate function; otherwise, NO.

Usage notes

  • Latency for the view can be up to 24 hours.
  • The view only displays objects for which the current role for the session has been granted access privileges.
  • The view does not recognize the MANAGE GRANTS privilege and consequently might show less information compared to a SHOW command executed by a user who holds the MANAGE GRANTS privilege.
  • The LAST_ALTERED column is updated when the following operations are performed on an object:

    • DDL operations.
    • DML operations (for tables only). This column is updated even when no rows are affected by the DML statement.
    • Background maintenance operations on metadata performed by Snowflake.