CLASS_INSTANCE_FUNCTIONS view

This Information Schema view displays a row for each function in a class instance.

See also:

CLASS_INSTANCES view, CLASS_INSTANCE_PROCEDURES view, SHOW FUNCTIONS

Columns

Column NameData TypeDescription
FUNCTION_NAMEVARCHARName of the function.
FUNCTION_INSTANCE_NAMEVARCHARName of the class instance to which the function belongs.
FUNCTION_INSTANCE_SCHEMAVARCHARName of the schema to which the class instance belongs.
FUNCTION_INSTANCE_DATABASEVARCHARName of the database to which the class instance belongs.
FUNCTION_OWNERVARCHARName of the role that owns the function.
ARGUMENT_SIGNATUREVARCHARType signature of the function’s arguments.
DATA_TYPEVARCHARData type of the return value.
CHARACTER_MAXIMUM_LENGTHNUMBERMaximum length in characters of string type return value.
CHARACTER_OCTET_LENGTHNUMBERMaximum length in bytes of string type return value.
NUMERIC_PRECISIONNUMBERNumeric precision of numeric type return value.
NUMERIC_PRECISION_RADIXNUMBERRadix of precision of numeric type return value.
NUMERIC_SCALENUMBERScale of numeric type return value.
FUNCTION_LANGUAGEVARCHARLanguage of the function.
FUNCTION_DEFINITIONVARCHARFunction definition.
VOLATILITYVARCHARWhether the function is volatile or immutable.
IS_NULL_CALLVARCHAR‘YES’ if the function is called on null input.
IS_SECUREVARCHAR‘YES’ if the function is secure.
CREATEDTIMESTAMP_LTZDate and time when the function was created.
LAST_ALTEREDTIMESTAMP_LTZDate and time the object was last altered by a DML, DDL, or background metadata operation. See Usage Notes.
COMMENTVARCHARComment for this function.
IS_EXTERNAL [1]VARCHAR‘YES’ if the function is an external function.
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.
IS_MEMOIZABLEVARCHAR‘YES’ if the function is memoizable, ‘NO’ otherwise.

Usage notes

  • The view only displays objects for which the current role for the session has been granted an instance role with access privileges.
  • 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.

Examples

Retrieve the functions for class instances in the mydatabase database:

SELECT function_name,
       function_instance_name AS instance_name,
       argument_signature,
       data_type AS return_value_data_type
    FROM mydatabase.INFORMATION_SCHEMA.CLASS_INSTANCE_FUNCTIONS;