Context Functions
all_user_names
Supported Signatures
current_account
Supported Signatures
current_account_name
Supported Signatures
current_available_roles
Supported Signatures
current_client
Returns the current client version. Supported Signatures
current_database
Returns the current database. Supported Signatures
current_date
Returns the current date. Supported Signatures
current_ip_address
Returns the Client Internet Protocol address (IP address) of the current request. Supported Signatures
current_organization_name
Returns the name of the organization the current account belongs to. Supported Signatures
current_region
Returns the current region name. Supported Signatures
current_role
Returns the currently active role name. Supported Signatures
current_role_type
Returns if the current role is of type account or database Supported Signatures
current_schema
Returns the current schema. Supported Signatures
current_schemas
Returns active search path schemas Supported Signatures
current_secondary_roles
Returns the currently active secondary rolesβ names. Supported Signatures
current_session
Returns the current session. Supported Signatures
current_statement
Returns the text of the currently executing statement. Supported Signatures
current_time
Returns the current time. Supported Signatures
current_timestamp
Returns the current timestamp. Supported Signatures
current_transaction
Returns the transaction id of an open transaction in the current session or scope. Supported Signatures
current_user
Returns the current user name. Supported Signatures
current_version
Returns the current software version (major.minor.patch). Supported Signatures
current_warehouse
Returns the warehouse currently in use. Supported Signatures
getdate
Returns the current timestamp Supported Signatures
getvariable
Supported Signatures
invoker_role
Returns the invoker role Supported Signatures
invoker_share
Returns the invoker role Supported Signatures
is_database_role_in_session
Return true if the db role is in current role hierarchy Supported Signatures
is_granted_to_invoker_role
Returns true if the arg is in invoker_roleβs hierarchy Supported Signatures
is_role_in_session
Return true if in current hierarchy Supported Signatures
last_query_id
Returns the id of the last executed statement in the current session. Supported Signatures
last_transaction
Returns the transaction id of the last committed or rolled back transaction in the current session. Supported Signatures
localtime
Returns the current time. Supported Signatures
localtimestamp
Returns the current timestamp. Supported Signatures
sysdate
Returns the current timestamp in the UTC time zone Supported Signatures
systimestamp
Returns the current timestamp Supported Signatures