Functions
Account Usage table functions (1)Aggregate functions (91)Bitwise expression functions (10)Conditional expression functions (25)Context functions (53)Conversion functions (51)Data generation functions (10)Data metric functions (325)Date & time functions (50)Differential privacy functions (3)Encryption functions (6)File functions (26)Geospatial functions (101)Hash functions (1)IPADDRESS functions (3)Information Schema (63)LOCAL schema (2)Metadata functions (2)Model monitor functions (3)Notification functions (6)Numeric functions (37)Organization user and organization user group functions (2)Period functions (14)Semi-structured and structured data functions (102)String & binary functions (109)String functions (regular expressions) (8)System functions (299)Table functions (103)Table functions (Tables) (1)Uncategorized (1)Vector functions (10)Window function syntax and usage (36)Window functions (48)Not in the SQL reference (44)
Account Usage table functions (1)
| Function | Support | Area | Description |
|---|---|---|---|
TAG_REFERENCES_WITH_LINEAGE | supported | Governance (policies, tags, data quality) | Returns a table in which each row displays an association between the specified tag and the Snowflake object to which the tag is associated. |
Aggregate functions (91)
| Function | Support | Area | Description |
|---|---|---|---|
ACCUMULATE | supported | Core SQL functions | Returns a custom aggregate value computed by four user-defined SQL lambda functions: initialize, accumulate, combine, and terminate. ACCUMULATE follows the… |
AGG | supported | Core SQL functions | Evaluates and returns the value of a metric in a semantic view when you run a query. |
AI_AGG | deferred | AI & ML | Reduces a column of text data using a natural language instruction. |
AI_SUMMARIZE_AGG | deferred | AI & ML | Summarizes a column of text data. |
ANY_VALUE | supported | Core SQL functions | Returns some value of the expression from the group. The result is non-deterministic. |
APPROXIMATE_JACCARD_INDEX | supported | Core SQL functions | Returns an estimation of the similarity (Jaccard index) of inputs based on their MinHash states. For more information about Jaccard indexes and the related… |
APPROXIMATE_SIMILARITY | supported | Core SQL functions | Returns an estimation of the similarity (Jaccard index) of inputs based on their MinHash states. For more information about MinHash states, see Estimating… |
APPROX_COUNT_DISTINCT | supported | Core SQL functions | Uses HyperLogLog to return an approximation of the distinct cardinality of the input (i.e. HLL(col1, col2, ... ) returns an approximation of COUNT(DISTINCT… |
APPROX_PERCENTILE | supported | Core SQL functions | Returns an approximated value for the desired percentile (that is, if column c has n numbers, APPROX_PERCENTILE(c, p) returns a number such that approximately… |
APPROX_PERCENTILE_ACCUMULATE | supported | Core SQL functions | Returns the internal representation of the t-Digest state (as a JSON object) at the end of aggregation. (For more information about t-Digest, see: Estimating… |
APPROX_PERCENTILE_COMBINE | supported | Core SQL functions | Combines (merges) percentile input states into a single output state. |
APPROX_PERCENTILE_ESTIMATE | supported | Core SQL functions | Returns the desired approximated percentile value for the specified t-Digest state. |
APPROX_TOP_K | supported | Core SQL functions | Uses Space-Saving to return an approximation of the most frequent values in the input, along with their approximate frequencies. |
APPROX_TOP_K_ACCUMULATE | supported | Core SQL functions | Returns the Space-Saving summary at the end of aggregation. (For more information about the Space-Saving summary, see Estimating Frequent Values.) |
APPROX_TOP_K_COMBINE | supported | Core SQL functions | Combines (merges) input states into a single output state. |
APPROX_TOP_K_ESTIMATE | supported | Core SQL functions | Returns the approximate most frequent values and their estimated frequency for the given Space-Saving state. (For more information about the Space-Saving… |
ARRAY_AGG | supported | Core SQL functions | Returns the input values, pivoted into an array. If the input is empty, the function returns an empty array. |
ARRAY_SUM | supported | Core SQL functions | Aggregates a column of structured ARRAY values by summing them element by element. The value at each position in the result is the sum of the values at that… |
ARRAY_UNION_AGG | supported | Core SQL functions | Returns an ARRAY that contains the union of the distinct values from the input arrays in a column. You can use this to aggregate distinct values in arrays… |
ARRAY_UNIQUE_AGG | supported | Core SQL functions | Returns an ARRAY that contains all of the distinct values from the specified column. |
AVG | supported | Core SQL functions | Returns the average of non-NULL records. If all records inside a group are NULL, the function returns NULL. |
BITAND_AGG | supported | Core SQL functions | Returns the bitwise AND value of all non-NULL numeric records in a group. |
BITMAP_ABSOLUTE_POSITION | supported | Core SQL functions | Computes the absolute bit position from a bucket number and a relative bit position. This is the inverse of the BITMAP_BUCKET_NUMBER and BITMAP_BIT_POSITION… |
BITMAP_AND | supported | Core SQL functions | Returns a bitmap that is the result of a bitwise AND operation on two input bitmaps. |
BITMAP_AND_AGG | supported | Core SQL functions | Returns a bitmap that is the result of a bitwise AND operation on all input bitmaps in a group (intersection). |
BITMAP_BIT_POSITION | supported | Core SQL functions | Given a numeric value, returns the relative position for the bit that represents that value in a bitmap. |
BITMAP_BUCKET_NUMBER | supported | Core SQL functions | Given a numeric value, returns an identifier (“bucket number”) for the bitmap containing the bit that represents the value.. |
BITMAP_CONSTRUCT_AGG | supported | Core SQL functions | Returns a bitmap with bits set for each distinct value in a group. |
BITMAP_COUNT | supported | Core SQL functions | Given a bitmap that represents the set of distinct values for a column, returns the number of distinct value. |
BITMAP_OR | supported | Core SQL functions | Returns a bitmap that is the result of a bitwise OR operation on two input bitmaps. |
BITMAP_OR_AGG | supported | Core SQL functions | Returns a bitmap containing the results of a binary OR operation on the input bitmaps. |
BITMAP_TO_ARRAY | supported | Core SQL functions | Returns an ARRAY containing the positions of all bits that are set in the input bitmap. |
BITOR_AGG | supported | Core SQL functions | Returns the bitwise OR value of all non-NULL numeric records in a group. |
BITXOR_AGG | supported | Core SQL functions | Returns the bitwise XOR value of all non-NULL numeric records in a group. |
BOOLAND_AGG | supported | Core SQL functions | Returns TRUE if all non-NULL Boolean records in a group evaluate to TRUE. |
BOOLOR_AGG | supported | Core SQL functions | Returns TRUE if at least one Boolean record in a group evaluates to TRUE. |
BOOLXOR_AGG | supported | Core SQL functions | Returns TRUE if exactly one Boolean record in the group evaluates to TRUE. |
CORR | supported | Core SQL functions | Returns the correlation coefficient for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
COUNT | supported | Core SQL functions | Returns either the number of non-NULL records for the specified columns, or the total number of records. |
COUNT_IF | supported | Core SQL functions | Returns the number of records that satisfy a condition or NULL if no records satisfy the condition. |
COVAR_POP | supported | Core SQL functions | Returns the population covariance for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
COVAR_SAMP | supported | Core SQL functions | Returns the sample covariance for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
DATASKETCHES_HLL | supported | Core SQL functions | Returns an approximation of the distinct cardinality of the input (that is, DATASKETCHES_HLL(col1) returns an approximation of COUNT(DISTINCT col1)). |
DATASKETCHES_HLL_ACCUMULATE | supported | Core SQL functions | Returns the sketch at the end of aggregation. |
DATASKETCHES_HLL_COMBINE | supported | Core SQL functions | Combines (merges) input sketches into a single output sketch. |
DATASKETCHES_HLL_ESTIMATE | supported | Core SQL functions | Returns the cardinality estimate for the given sketch. |
GROUPING | supported | Core SQL functions | Describes which of a list of expressions are grouped in a row produced by a GROUP BY query. |
GROUPING_ID | supported | Core SQL functions | Describes which of a list of expressions are grouped in a row produced by a GROUP BY query. |
HASH_AGG | supported | Core SQL functions | Returns an aggregate signed 64-bit hash value over the (unordered) set of input rows. HASH_AGG never returns NULL, even if no input is provided. Empty input… |
HLL | supported | Core SQL functions | Uses HyperLogLog to return an approximation of the distinct cardinality of the input (i.e. HLL(col1, col2, ... ) returns an approximation of COUNT(DISTINCT… |
HLL_ACCUMULATE | supported | Core SQL functions | Returns the HyperLogLog state at the end of aggregation. |
HLL_COMBINE | supported | Core SQL functions | Combines (merges) input states into a single output state. |
HLL_ESTIMATE | supported | Core SQL functions | Returns the cardinality estimate for the given HyperLogLog state. |
HLL_EXPORT | supported | Core SQL functions | Converts input in BINARY format to OBJECT format. |
HLL_IMPORT | supported | Core SQL functions | Converts input in OBJECT format to BINARY format. |
KURTOSIS | supported | Core SQL functions | Returns the sample excess kurtosis of non-NULL records. If all records inside a group are NULL, the function returns NULL. |
LISTAGG | supported | Core SQL functions | Returns the concatenated input values, separated by the delimiter string. |
MAX | supported | Core SQL functions | Returns the maximum value for the records within expr. NULL values are ignored unless all the records are NULL, in which case a NULL value is returned. |
MAX_BY | supported | Core SQL functions | Finds the row(s) containing the maximum value for a column and returns the value of another column in that row. |
MEDIAN | supported | Core SQL functions | Determines the median of a set of values. |
MIN | supported | Core SQL functions | Returns the minimum value for the records within expr. NULL values are ignored unless all the records are NULL, in which case a NULL value is returned. |
MINHASH | supported | Core SQL functions | Returns a MinHash state containing an array of size k constructed by applying k number of different hash functions to the input rows and keeping the minimum of… |
MINHASH_COMBINE | supported | Core SQL functions | Combines input MinHash states into a single MinHash output state. This Minhash state can then be input to the APPROXIMATE_SIMILARITY function to estimate the… |
MIN_BY | supported | Core SQL functions | Finds the row(s) containing the minimum value for a column and returns the value of another column in that row. |
MODE | supported | Core SQL functions | Returns the most frequent value for the values within expr1. NULL values are ignored. If all the values are NULL, or there are 0 rows, then the function… |
OBJECT_AGG | supported | Core SQL functions | Returns one OBJECT per group. For each (key, value) input pair, where key must be a VARCHAR and value must be a VARIANT, the resulting OBJECT contains a… |
PERCENTILE_CONT | supported | Core SQL functions | Return a percentile value based on a continuous distribution of the input column (specified in order_by_expr). If no input row lies exactly at the desired… |
PERCENTILE_DISC | supported | Core SQL functions | Returns a percentile value based on a discrete distribution of the input column (specified in order_by_expr). The returned value is that whose row has the… |
REGR_AVGX | supported | Core SQL functions | Returns the average of the independent variable for non-null pairs in a group, where x is the independent variable and y is the dependent variable. |
REGR_AVGY | supported | Core SQL functions | Returns the average of the dependent variable for non-null pairs in a group, where x is the independent variable and y is the dependent variable. |
REGR_COUNT | supported | Core SQL functions | Returns the number of non-null number pairs in a group. |
REGR_INTERCEPT | supported | Core SQL functions | Returns the intercept of the univariate linear regression line for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
REGR_R2 | supported | Core SQL functions | Returns the coefficient of determination for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
REGR_SLOPE | supported | Core SQL functions | Returns the slope of the linear regression line for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
REGR_SXX | supported | Core SQL functions | Returns REGR_COUNT(y, x) * VAR_POP(x) for non-null pairs. |
REGR_SXY | supported | Core SQL functions | Returns REGR_COUNT(expr1, expr2) * COVAR_POP(expr1, expr2) for non-null pairs. |
REGR_SYY | supported | Core SQL functions | Returns REGR_COUNT(y, x) * VAR_POP(y) for non-null pairs. |
SKEW | supported | Core SQL functions | Returns the sample skewness of non-NULL records. If all records inside a group are NULL, the function returns NULL. |
STDDEV | supported | Core SQL functions | Returns the sample standard deviation (square root of sample variance) of non-NULL values. STDDEV and STDDEV_SAMP are aliases for the same function. |
STDDEV_POP | supported | Core SQL functions | Returns the population standard deviation (square root of variance) of non-NULL values. |
STDDEV_SAMP | supported | Core SQL functions | Returns the sample standard deviation (square root of sample variance) of non-NULL values. STDDEV and STDDEV_SAMP are aliases for the same function. |
SUM | supported | Core SQL functions | Returns the sum of non-NULL records for expr. You can use the DISTINCT keyword to compute the sum of unique non-null values. If all records inside a group are… |
VARIANCE | supported | Core SQL functions | Returns the sample variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. |
VARIANCE_POP | supported | Core SQL functions | Returns the population variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. |
VARIANCE_SAMP | supported | Core SQL functions | Returns the sample variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. |
VAR_POP | supported | Core SQL functions | Returns the population variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. |
VAR_SAMP | supported | Core SQL functions | Returns the sample variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. |
VECTOR_AVG | supported | AI & ML | Computes the element-wise average of vectors in an aggregate. Returns a vector where each element is the average of the corresponding elements across all input… |
VECTOR_MAX | supported | AI & ML | Computes the element-wise maximum of vectors in an aggregate. Returns a vector where each element is the maximum of the corresponding elements across all input… |
VECTOR_MIN | supported | AI & ML | Computes the element-wise minimum of vectors in an aggregate. Returns a vector where each element is the minimum of the corresponding elements across all input… |
VECTOR_SUM | supported | AI & ML | Computes the element-wise sum of vectors in an aggregate. Returns a vector where each element is the sum of the corresponding elements across all input vectors. |
Bitwise expression functions (10)
| Function | Support | Area | Description |
|---|---|---|---|
BITAND | supported | Core SQL functions | Returns the bitwise AND of two numeric or binary expressions. |
BITAND_AGG | supported | Core SQL functions | Returns the bitwise AND value of all non-NULL numeric records in a group. |
BITNOT | supported | Core SQL functions | Returns the bitwise negation of a numeric or binary expression. |
BITOR | supported | Core SQL functions | Returns the bitwise OR of two numeric or binary expressions. |
BITOR_AGG | supported | Core SQL functions | Returns the bitwise OR value of all non-NULL numeric records in a group. |
BITSHIFTLEFT | supported | Core SQL functions | Shifts the bits for a numeric or binary expression n positions to the left. |
BITSHIFTRIGHT | supported | Core SQL functions | Shifts the bits for a numeric or binary expression n positions to the right. |
BITXOR | supported | Core SQL functions | Returns the bitwise XOR of two numeric or binary expressions. |
BITXOR_AGG | supported | Core SQL functions | Returns the bitwise XOR value of all non-NULL numeric records in a group. |
GETBIT | supported | Core SQL functions | Given an INTEGER value, returns the value of a bit at a specified position. |
Conditional expression functions (25)
| Function | Support | Area | Description |
|---|---|---|---|
BOOLAND | supported | Core SQL functions | Computes the Boolean AND of two numeric expressions. In accordance with Boolean semantics: |
BOOLAND_AGG | supported | Core SQL functions | Returns TRUE if all non-NULL Boolean records in a group evaluate to TRUE. |
BOOLNOT | supported | Core SQL functions | Computes the Boolean NOT of a single numeric expression. In accordance with Boolean semantics: |
BOOLOR | supported | Core SQL functions | Computes the Boolean OR of two numeric expressions. In accordance with Boolean semantics: |
BOOLOR_AGG | supported | Core SQL functions | Returns TRUE if at least one Boolean record in a group evaluates to TRUE. |
BOOLXOR | supported | Core SQL functions | Computes the Boolean XOR of two numeric expressions; that is, one of the expressions, but not both expressions, is true. In accordance with Boolean semantics: |
BOOLXOR_AGG | supported | Core SQL functions | Returns TRUE if exactly one Boolean record in the group evaluates to TRUE. |
CASE | supported | Core SQL functions | Works like a cascading “if-then-else” statement. In the more general form, a series of conditions are evaluated in sequence. When a condition evaluates to… |
COALESCE | supported | Core SQL functions | Returns the first non-NULL expression among its arguments, or NULL if all its arguments are NULL. |
DECODE | supported | Core SQL functions | Compares the select expression to each search expression in order. As soon as a search expression matches the selection expression, the corresponding result… |
EQUAL_NULL | supported | Core SQL functions | Compares whether two expressions are equal. The function is NULL-safe, meaning it treats NULLs as known values for comparing equality. Note that this is… |
GREATEST | supported | Core SQL functions | Returns the largest value from a list of expressions. GREATEST supports all data types, including VARIANT. |
GREATEST_IGNORE_NULLS | supported | Core SQL functions | Returns the largest non-NULL value from a list of expressions. GREATEST_IGNORE_NULLS supports all data types, including VARIANT. |
IFF | supported | Core SQL functions | Returns one of two values depending on whether a Boolean expression evaluates to true or false. This function is similar to a single-level if-then-else… |
IFNULL | supported | Core SQL functions | If expr1 is NULL, returns expr2, otherwise returns expr1. |
IS_NULL_VALUE | supported | Core SQL functions | This family of functions serves as Boolean predicates that can be used to determine the data type of a value stored in a VARIANT column: |
LEAST | supported | Core SQL functions | Returns the smallest value from a list of expressions. LEAST supports all data types, including VARIANT. |
LEAST_IGNORE_NULLS | supported | Core SQL functions | Returns the smallest non-NULL value from a list of expressions. LEAST_IGNORE_NULLS supports all data types, including VARIANT. |
NULLIF | supported | Core SQL functions | Returns NULL if expr1 is equal to expr2, otherwise returns expr1. |
NULLIFZERO | supported | Core SQL functions | Returns NULL if the argument evaluates to 0; otherwise, returns the argument. |
NVL | supported | Core SQL functions | If expr1 is NULL, returns expr2, otherwise returns expr1. |
NVL2 | supported | Core SQL functions | Returns values depending on whether the first input is NULL: |
REGR_VALX | supported | Core SQL functions | Returns NULL if the first argument is NULL; otherwise, returns the second argument. |
REGR_VALY | supported | Core SQL functions | Returns NULL if the second argument is NULL; otherwise, returns the first argument. |
ZEROIFNULL | supported | Core SQL functions | Returns 0 if its argument is null; otherwise, returns its argument. |
Context functions (53)
| Function | Support | Area | Description |
|---|---|---|---|
ALL_USER_NAMES | supported | Accounts, users, sessions, warehouses | Returns all user names in the current account. |
CURRENT_ACCOUNT | supported | Accounts, users, sessions, warehouses | Returns the account locator used by the user’s current session. |
CURRENT_ACCOUNT_NAME | supported | Accounts, users, sessions, warehouses | Returns the name of the current account. |
CURRENT_AVAILABLE_ROLES | partial | Access control (grants, roles) | Returns a list of all account-level roles granted to the current user. The list includes all roles that are granted directly to the user plus all account-level… |
CURRENT_CLIENT | supported | Accounts, users, sessions, warehouses | Returns the version of the client from which the function was called. If called from an application using the JDBC or ODBC driver to connect to Snowflake,… |
CURRENT_DATABASE | supported | Accounts, users, sessions, warehouses | Returns the name of the current database, which varies depending on where you call the function: |
CURRENT_DATE | supported | Core SQL functions | Returns the current date of the system. |
CURRENT_IP_ADDRESS | supported | Accounts, users, sessions, warehouses | Returns the IPv4 address of the client that submitted the request. |
CURRENT_ORGANIZATION_NAME | supported | Accounts, users, sessions, warehouses | Returns the name of the organization to which the current account belongs. |
CURRENT_ORGANIZATION_USER | supported | Accounts, users, sessions, warehouses | Returns the name of the user currently logged into the system, but only if the user is an organization user. |
CURRENT_REGION | supported | Accounts, users, sessions, warehouses | Returns the name of the region for the account where the current user is logged in. |
CURRENT_ROLE | supported | Access control (grants, roles) | Returns the name of the primary role in use for the current session when the primary role is an account-level role or NULL if the role in use for the current… |
CURRENT_ROLE_TYPE | supported | Access control (grants, roles) | Calling the CURRENT_ROLE_TYPE function returns ROLE if the current active (primary) role in the session is an account role. Calling the CURRENT_ROLE_TYPE… |
CURRENT_SCHEMA | supported | Accounts, users, sessions, warehouses | Returns the name of the current schema, which varies depending on where you call the function: |
CURRENT_SCHEMAS | supported | Accounts, users, sessions, warehouses | Returns active search path schemas. |
CURRENT_SECONDARY_ROLES | supported | Access control (grants, roles) | Returns the secondary roles in use for the current session. |
CURRENT_SESSION | supported | Accounts, users, sessions, warehouses | Returns a unique system identifier for the Snowflake session corresponding to the present connection. This will generally be a system-generated alphanumeric… |
CURRENT_STATEMENT | supported | Accounts, users, sessions, warehouses | Returns the SQL text of the statement that is currently executing. |
CURRENT_TIME | supported | Core SQL functions | Returns the current time for the system. |
CURRENT_TIMESTAMP | supported | Core SQL functions | Returns the current timestamp for the system in the local time zone. |
CURRENT_TRANSACTION | supported | Accounts, users, sessions, warehouses | Returns the transaction id of an open transaction in the current session. |
CURRENT_USER | supported | Accounts, users, sessions, warehouses | Returns the name of the user currently logged into the system. |
CURRENT_VERSION | supported | Accounts, users, sessions, warehouses | Returns the current Snowflake version. |
CURRENT_WAREHOUSE | supported | Accounts, users, sessions, warehouses | Returns the name of the warehouse in use for the current session. |
GETDATE | supported | Core SQL functions | Returns the current timestamp for the system in the local time zone. |
GETVARIABLE | supported | UDFs, procedures, tasks, alerts, scripting | Returns the value associated with a SQL variable name. |
GET_CONDITION_QUERY_UUID | supported | UDFs, procedures, tasks, alerts, scripting | Returns the query ID for the SQL statement executed for the condition of an alert. In the action for an alert, you can call this function to check the results… |
GET_CONFIGURATION_VALUE | supported | Native apps, listings & sharing | Returns the current value for the specified configuration. |
INVOKER_ROLE | supported | Access control (grants, roles) | Returns the name of the account-level role of the object executing the query or NULL if the name of the role is a database role. |
INVOKER_SHARE | supported | Native apps, listings & sharing | Returns the name of the share that directly accessed the table or view where the INVOKER_SHARE function is invoked, otherwise the function returns NULL. |
IS_AGENT_ACTIVATED | supported | Accounts, users, sessions, warehouses | Returns the VARCHAR value 'TRUE' if an agent is active in the current execution context, or 'FALSE' if no agent is active. |
IS_APPLICATION_ROLE_ACTIVATED | supported | Access control (grants, roles) | Returns the VARCHAR value 'TRUE' if an application role is activated in the specified context. |
IS_APPLICATION_ROLE_IN_SESSION | supported | Access control (grants, roles) | Verifies whether the application role is activated in the consumer’s current session. |
IS_CONFIGURATION_SET | supported | Native apps, listings & sharing | Returns the VARCHAR value 'TRUE' if the specified configuration has a value set, that is, the configuration’s status is DONE. Returns FALSE if the… |
IS_DATABASE_ROLE_ACTIVATED | supported | Access control (grants, roles) | Returns the VARCHAR value 'TRUE' if a database role is activated. You can check activation in the session context or in the current execution context. |
IS_DATABASE_ROLE_IN_SESSION | supported | Access control (grants, roles) | Verifies whether the database role is in the user’s active primary or secondary role hierarchy for the current session or if the specified column contains a… |
IS_GRANTED_TO_INVOKER_ROLE | supported | Access control (grants, roles) | Returns TRUE if the role returned by the INVOKER_ROLE function inherits the privileges of the specified role in the argument based on the context in which the… |
IS_GROUP_ACTIVATED | supported | Accounts, users, sessions, warehouses | Returns the VARCHAR value 'TRUE' if the role representing an organization user group is activated in a given context. |
IS_GROUP_IMPORTED | supported | Accounts, users, sessions, warehouses | Returns the VARCHAR value 'TRUE' if the specified group is an organization user group that was imported into the current account. |
IS_INSTANCE_ROLE_IN_SESSION | supported | Access control (grants, roles) | Verifies whether the user’s active primary or secondary role hierarchy for the session inherits the specified instance role. |
IS_ORGANIZATION_USER_GROUP_IN_SESSION | supported | Accounts, users, sessions, warehouses | Assuming a role was imported from an organization user group, verifies whether the role is in the user’s active primary or secondary role hierarchy for the… |
IS_ROLE_ACTIVATED | supported | Access control (grants, roles) | Returns the VARCHAR value 'TRUE' if an account role is activated. You can check one role or several roles in a single call, and you can check activation in the… |
IS_ROLE_IN_SESSION | supported | Access control (grants, roles) | Verifies whether the specified account role is in the currently active primary or secondary role hierarchy. |
IS_USER_IMPORTED | supported | Accounts, users, sessions, warehouses | Returns the VARCHAR value 'TRUE' if the specified user is an organization user that was imported into the current account. |
LAST_QUERY_ID | supported | Queries & DML | Returns the ID of a specified query in the current session. If no query is specified, the most recent query is returned. |
LAST_TRANSACTION | supported | Queries & DML | Returns the transaction ID of the last transaction that was either committed or rolled back in the current session. |
LOCALTIME | supported | Core SQL functions | Returns the current time for the system. |
LOCALTIMESTAMP | supported | Core SQL functions | Returns the current timestamp for the system in the local time zone. |
POLICY_CONTEXT | supported | Governance (policies, tags, data quality) | Simulates the results of a query based on the value of one or more context functions or SYS_CONTEXT namespace properties, which lets you determine how policies… |
SET_SYS_CONTEXT | supported | Accounts, users, sessions, warehouses | Sets a value for a specified key in a specified namespace that can be retrieved later using SYS_CONTEXT. |
SYSDATE | supported | Core SQL functions | Returns the current timestamp for the system in the UTC time zone. |
SYSTIMESTAMP | supported | Core SQL functions | Returns the current timestamp for the system. |
SYS_CONTEXT | supported | Accounts, users, sessions, warehouses | Returns information about the context in which the function is called. |
Conversion functions (51)
| Function | Support | Area | Description |
|---|---|---|---|
CAST | supported | Core SQL functions | Converts a value of one data type into another data type. The semantics of CAST are the same as the semantics of the corresponding TO_ datatype conversion… |
DATE | supported | Core SQL functions | Converts an input expression to a date: |
ST_GEOGFROMGEOHASH | supported | Core SQL functions | Returns a GEOGRAPHY object for the polygon that represents the boundaries of a geohash. |
ST_GEOGPOINTFROMGEOHASH | supported | Core SQL functions | Returns a GEOGRAPHY object for the Point that represents the center of a geohash. |
ST_GEOGRAPHYFROMWKB | supported | Core SQL functions | Parses a WKB (well-known binary) or EWKB (extended well-known binary) input and returns a value of type GEOGRAPHY. |
ST_GEOGRAPHYFROMWKT | supported | Core SQL functions | Parses a WKT (well-known text) or EWKT (extended well-known text) input and returns a value of type GEOGRAPHY. |
ST_GEOMETRYFROMWKB | supported | Core SQL functions | Parses a WKB (well-known binary) or EWKB (extended well-known binary) input and returns a value of type GEOMETRY. |
ST_GEOMETRYFROMWKT | supported | Core SQL functions | Parses a WKT (well-known text) or EWKT (extended well-known text) input and returns a value of type GEOMETRY. |
TIME | supported | Core SQL functions | Converts an input expression into a time. |
TO_ARRAY | supported | Core SQL functions | Converts the input expression to an ARRAY value. |
TO_BINARY | supported | Core SQL functions | Converts the input expression to a binary value. For NULL input, the output is NULL. |
TO_BOOLEAN | supported | Core SQL functions | Converts the input text or numeric expression to a BOOLEAN value. |
TO_CHAR | supported | Core SQL functions | Converts the input expression to a string. For NULL input, the output is NULL. |
TO_DATE | supported | Core SQL functions | Converts an input expression to a date: |
TO_DECFLOAT | supported | Core SQL functions | Converts an expression to a decimal floating-point number (DECFLOAT). |
TO_DECIMAL | supported | Core SQL functions | Converts an input expression to a fixed-point number. |
TO_DOUBLE | supported | Core SQL functions | Converts an expression to a double-precision floating-point number. |
TO_GEOGRAPHY | supported | Core SQL functions | Parses an input and returns a value of type GEOGRAPHY. |
TO_GEOMETRY | partial | Core SQL functions | Parses an input and returns a value of type GEOMETRY. |
TO_IPADDRESS | supported | Core SQL functions | Converts the input expression to an IPADDRESS value. |
TO_JSON | supported | Core SQL functions | Converts a VARIANT value to a string containing the JSON representation of the value. |
TO_NUMBER | supported | Core SQL functions | Converts an input expression to a fixed-point number. |
TO_NUMERIC | supported | Core SQL functions | Converts an input expression to a fixed-point number. |
TO_OBJECT | supported | Core SQL functions | Converts the input value to an OBJECT: |
TO_TIME | supported | Core SQL functions | Converts an input expression into a time. |
TO_TIMESTAMP | supported | Core SQL functions | Converts an input expression into the corresponding timestamp: |
TO_TIMESTAMP_LTZ | supported | Core SQL functions | Converts an input expression into the corresponding timestamp: |
TO_TIMESTAMP_NTZ | supported | Core SQL functions | Converts an input expression into the corresponding timestamp: |
TO_TIMESTAMP_TZ | supported | Core SQL functions | Converts an input expression into the corresponding timestamp: |
TO_UUID | supported | Core SQL functions | Converts the input expression to a UUID value. |
TO_VARCHAR | supported | Core SQL functions | Converts the input expression to a string. For NULL input, the output is NULL. |
TO_VARIANT | supported | Core SQL functions | Converts any value to a VARIANT value or NULL (if input is NULL). |
TO_XML | supported | Core SQL functions | Converts a VARIANT to a VARCHAR that contains an XML representation of the value. If the input is NULL, the result is also NULL. |
TRY_CAST | supported | Core SQL functions | A special version of CAST , :: that is available for a subset of data type conversions. It performs the same operation (i.e. converts a value of one data type… |
TRY_TO_BINARY | supported | Core SQL functions | A special version of TO_BINARY that performs the same operation (i.e. converts an input expression to a binary value), but with error handling support (i.e. if… |
TRY_TO_BOOLEAN | supported | Core SQL functions | A special version of TO_BOOLEAN that performs the same operation (that is, converts an input expression to a Boolean value), but with error-handling support.… |
TRY_TO_DATE | supported | Core SQL functions | A special version of the TO_DATE function that performs the same operation (i.e. converts an input expression to a date), but with error-handling support (i.e.… |
TRY_TO_DECFLOAT | supported | Core SQL functions | A special version of TO_DECFLOAT that performs the same operation — that is, converts an input expression to a DECFLOAT — but with error-handling support. If… |
TRY_TO_DECIMAL | supported | Core SQL functions | A special version of TO_DECIMAL , TO_NUMBER , TO_NUMERIC that performs the same operation of converting an input expression to a fixed-point number, but has… |
TRY_TO_DOUBLE | supported | Core SQL functions | A special version of TO_DOUBLE that performs the same operation (that is, converts an input expression to a double-precision floating-point number), but with… |
TRY_TO_GEOGRAPHY | supported | Core SQL functions | Parses an input and returns a value of type GEOGRAPHY. |
TRY_TO_GEOMETRY | supported | Core SQL functions | Parses an input and returns a value of type GEOMETRY. |
TRY_TO_IPADDRESS | supported | Core SQL functions | A special version of TO_IPADDRESS that performs the same operation (converts an input expression to an IPADDRESS value) but with error-handling support. If the… |
TRY_TO_NUMBER | supported | Core SQL functions | A special version of TO_DECIMAL , TO_NUMBER , TO_NUMERIC that performs the same operation of converting an input expression to a fixed-point number, but has… |
TRY_TO_NUMERIC | supported | Core SQL functions | A special version of TO_DECIMAL , TO_NUMBER , TO_NUMERIC that performs the same operation of converting an input expression to a fixed-point number, but has… |
TRY_TO_TIME | supported | Core SQL functions | A special version of TO_TIME , TIME that performs the same operation (i.e. converts an input expression into a time), but with error-handling support (i.e. if… |
TRY_TO_TIMESTAMP | supported | Core SQL functions | A special version of TO_TIMESTAMP / TO_TIMESTAMP_* that performs the same operation (i.e. converts an input expression into a timestamp), but with… |
TRY_TO_TIMESTAMP_LTZ | supported | Core SQL functions | A special version of TO_TIMESTAMP / TO_TIMESTAMP_* that performs the same operation (i.e. converts an input expression into a timestamp), but with… |
TRY_TO_TIMESTAMP_NTZ | supported | Core SQL functions | A special version of TO_TIMESTAMP / TO_TIMESTAMP_* that performs the same operation (i.e. converts an input expression into a timestamp), but with… |
TRY_TO_TIMESTAMP_TZ | supported | Core SQL functions | A special version of TO_TIMESTAMP / TO_TIMESTAMP_* that performs the same operation (i.e. converts an input expression into a timestamp), but with… |
TRY_TO_UUID | supported | Core SQL functions | A special version of TO_UUID that performs the same operation — that is, converts an input expression to a UUID value — but with error handling support. If the… |
Data generation functions (10)
| Function | Support | Area | Description |
|---|---|---|---|
NORMAL | supported | Core SQL functions | Generates a normally-distributed pseudo-random floating point number with specified mean and stddev (standard deviation). |
RANDOM | supported | Core SQL functions | Each call returns a pseudo-random 64-bit integer. |
RANDSTR | supported | Core SQL functions | Returns a random string of specified length. |
SEQ1 | supported | Core SQL functions | Returns a sequence of monotonically increasing integers, with wrap-around. Wrap-around occurs after the largest representable integer of the integer width (1,… |
SEQ2 | supported | Core SQL functions | Returns a sequence of monotonically increasing integers, with wrap-around. Wrap-around occurs after the largest representable integer of the integer width (1,… |
SEQ4 | supported | Core SQL functions | Returns a sequence of monotonically increasing integers, with wrap-around. Wrap-around occurs after the largest representable integer of the integer width (1,… |
SEQ8 | supported | Core SQL functions | Returns a sequence of monotonically increasing integers, with wrap-around. Wrap-around occurs after the largest representable integer of the integer width (1,… |
UNIFORM | supported | Core SQL functions | Generates a uniformly-distributed pseudo-random number in the inclusive range [min, max]. |
UUID_STRING | supported | Core SQL functions | Generates either a version 4 (random) or version 5 (named) RFC 4122-compliant universally unique identifier (UUID) as a formatted string. |
ZIPF | supported | Core SQL functions | Returns a Zipf-distributed integer, for N elements and characteristic exponent s. |
Data metric functions (325)
| Function | Support | Area | Description |
|---|---|---|---|
ACCEPTED_VALUESEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of records where the value of a column does not match a Boolean expression. |
ACCEPTED_VALUES_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of records where the value of a column does not match a Boolean expression. To get the number of those records instead, use… |
ACCURACYEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of rows in which a predicted value is equal to the actual value. Use this function to measure the output of a classification model, such… |
ALL_SPACE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not empty but contain only whitespace characters. |
ALL_SPACE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not empty but contain only whitespace characters. The percentage is computed over the total row count,… |
APPROX_QUANTILE_20Enterprise+ | supported | Governance (policies, tags, data quality) | Returns the approximate 20th percentile (P20) value for the specified column in a table. |
APPROX_QUANTILE_25Enterprise+ | supported | Governance (policies, tags, data quality) | Returns the approximate 25th percentile (P25) value for the specified column in a table. Use this function to track the lower quartile boundary of a numeric… |
APPROX_QUANTILE_40Enterprise+ | supported | Governance (policies, tags, data quality) | Returns the approximate 40th percentile (P40) value for the specified column in a table. |
APPROX_QUANTILE_50Enterprise+ | supported | Governance (policies, tags, data quality) | Returns the approximate 50th percentile (P50, also known as the approximate median) value for the specified column in a table. For large datasets, this… |
APPROX_QUANTILE_60Enterprise+ | supported | Governance (policies, tags, data quality) | Returns the approximate 60th percentile (P60) value for the specified column in a table. |
APPROX_QUANTILE_80Enterprise+ | supported | Governance (policies, tags, data quality) | Returns the approximate 80th percentile (P80) value for the specified column in a table. |
APPROX_QUANTILE_95Enterprise+ | supported | Governance (policies, tags, data quality) | Returns the approximate 95th percentile (P95) value for the specified column in a table. |
APPROX_QUANTILE_99Enterprise+ | supported | Governance (policies, tags, data quality) | Returns the approximate 99th percentile (P99) value for the specified column in a table. Use this function to detect outliers and monitor tail behavior.… |
AVG | supported | Core SQL functions | Returns the average of non-NULL records. If all records inside a group are NULL, the function returns NULL. |
AVG_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the average of the values in the column in the current window and the average of the same measurement over the baseline. |
AVG_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the average of the values in the column in the current window and the average of the same measurement over the baseline. |
AVG_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the average of the values in the column in the current window and the average of the same measurement over the baseline. |
AVG_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the average of the values in the column in the current window and the average of the same measurement over the baseline. |
AVG_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the average of the values in the column in the current window, relative to the average of the same measurement over the… |
AVG_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the average of the values in the column in the current window, relative to the average of the same measurement over the… |
AVG_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the average of the values in the column in the current window, relative to the average of the same measurement over the… |
AVG_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the average of the values in the column in the current window, relative to the average of the same measurement over the… |
BLANK_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of column values that are blank for the specified column in a table. A value is blank when it’s an empty string or contains only spaces (that… |
BLANK_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are blank for the specified column in a table. |
CASE_FORMAT_VIOLATION_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that have inconsistent casing. A value is considered a violation if it is not entirely uppercase, not entirely… |
CASE_FORMAT_VIOLATION_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that have inconsistent casing. A value is considered a violation if it is not entirely uppercase, not entirely… |
CONTAINS_SPACES_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that contain at least one space, tab, or no-break space. |
CONTAINS_SPACES_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that contain at least one space, tab, or no-break space. The percentage is computed over the total row count, including… |
DATA_METRIC_SCHEDULED_TIMEEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the timestamp for when a DMF is scheduled to run or the current timestamp if the function is called manually. |
DUPLICATE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of distinct values that occur more than once in a column, counting NULL as a value. If you specify more than one column argument, returns… |
DUPLICATE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of non-NULL rows whose value occurs more than once in the specified column. Every row with a repeated value is counted, not only the… |
EMPTY_STRING_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of column values that are empty strings (''). Whitespace-only strings are not counted; use BLANK_COUNT to count both. |
EMPTY_STRING_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are empty strings (''). Whitespace-only strings are not counted; use BLANK_PERCENT to measure both. The percentage… |
EXTREME_OUTLIER_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL, non-NaN values in a column that fall outside the extreme asymmetric Tukey fences for the column. |
EXTREME_OUTLIER_IQR_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL, non-NaN values in a column that fall outside the extreme Tukey fences (3 times the interquartile range) for the column. |
EXTREME_OUTLIER_IQR_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of a column’s values that fall outside the extreme Tukey fences (3 times the interquartile range) for the column. |
EXTREME_OUTLIER_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of a column’s values that fall outside the extreme asymmetric Tukey fences for the column. |
EXTREME_OUTLIER_ZSCORE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL, non-NaN values in a column whose absolute Z-score exceeds 4.5. |
EXTREME_OUTLIER_ZSCORE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of a column’s values whose absolute Z-score exceeds 4.5. |
FALSE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are FALSE. |
FALSE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are FALSE. The percentage is computed over the total row count, including NULL values in the denominator. |
FRESHNESSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns how much time in seconds has elapsed since a table was last modified. |
FUTURE_TIMESTAMP_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of column values that are in the future relative to the scheduled evaluation time. Use this function to detect future-dated records in event… |
FUTURE_TIMESTAMP_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are in the future relative to the scheduled evaluation time. The percentage is computed over the total row count,… |
GEOMETRIC_MEANEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the geometric mean of the positive values for the specified column in a table. Zero and negative values are excluded, because their logarithm is… |
HARMONIC_MEANEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the harmonic mean of the nonzero values for the specified column in a table. Zero values are excluded, because their reciprocal is undefined; negative… |
INVALID_CA_POSTAL_CODE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a Canadian postal code in the A1A 1A1 form. |
INVALID_CA_POSTAL_CODE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a Canadian postal code in the A1A 1A1 form. The percentage is computed over the total row count, including… |
INVALID_CA_SIN_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a Canadian Social Insurance Number (SIN) of nine digits. |
INVALID_CA_SIN_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a Canadian Social Insurance Number (SIN) of nine digits. The percentage is computed over the total row… |
INVALID_CH_OASI_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a Swiss OASI (AHV/AVS) social security number: 756 followed by ten digits. |
INVALID_CH_OASI_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a Swiss OASI (AHV/AVS) social security number: 756 followed by ten digits. The percentage is computed over… |
INVALID_CUSIP_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a CUSIP: eight characters, each an uppercase letter, digit, *, @, or #, followed by a digit. |
INVALID_CUSIP_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a CUSIP: eight characters, each an uppercase letter, digit, *, @, or #, followed by a digit. The… |
INVALID_DE_POSTAL_CODE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a German postal code: five digits that do not begin with 00. |
INVALID_DE_POSTAL_CODE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a German postal code: five digits that do not begin with 00. The percentage is computed over the total row… |
INVALID_DE_TAX_ID_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a German tax identification number: eleven digits that do not begin with zero. |
INVALID_DE_TAX_ID_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a German tax identification number: eleven digits that do not begin with zero. The percentage is computed… |
INVALID_EMAIL_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a valid email address. |
INVALID_EMAIL_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a valid email address. The percentage is computed over the total row count, including NULL values in the… |
INVALID_ES_DNI_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a Spanish DNI number: eight digits followed by a check letter. |
INVALID_ES_DNI_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a Spanish DNI number: eight digits followed by a check letter. The percentage is computed over the total… |
INVALID_FIGI_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a FIGI: two uppercase consonants, G, eight uppercase consonants or digits, and a trailing digit. |
INVALID_FIGI_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a FIGI: two uppercase consonants, G, eight uppercase consonants or digits, and a trailing digit. The… |
INVALID_FR_INSEE_CODE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a French INSEE commune code. |
INVALID_FR_INSEE_CODE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a French INSEE commune code. The percentage is computed over the total row count, including NULL values in… |
INVALID_FR_POSTAL_CODE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a French postal code: five digits with a prefix that is in use. |
INVALID_FR_POSTAL_CODE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a French postal code: five digits with a prefix that is in use. The percentage is computed over the total… |
INVALID_INTEGER_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not an integer: an optional sign followed by digits. |
INVALID_INTEGER_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not an integer: an optional sign followed by digits. The percentage is computed over the total row count,… |
INVALID_ISIN_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not an ISIN: two uppercase letters, nine uppercase letters or digits, and a trailing digit. |
INVALID_ISIN_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not an ISIN: two uppercase letters, nine uppercase letters or digits, and a trailing digit. The percentage is… |
INVALID_ISO8601_FORMAT_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not laid out as an ISO 8601 date or timestamp. |
INVALID_ISO8601_FORMAT_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not laid out as an ISO 8601 date or timestamp. The percentage is computed over the total row count, including… |
INVALID_IT_FISCAL_CODE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not an Italian fiscal code (codice fiscale) in the sixteen-character form. |
INVALID_IT_FISCAL_CODE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not an Italian fiscal code (codice fiscale) in the sixteen-character form. The percentage is computed over the… |
INVALID_JSON_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not valid JSON. Use this function to validate columns that are expected to contain JSON payloads. |
INVALID_JSON_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not valid JSON. The percentage is computed over the total row count, including NULL values in the denominator. |
INVALID_LATITUDE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of column values that are not a valid latitude: values outside the range -90 to 90. |
INVALID_LATITUDE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a valid latitude: values outside the range -90 to 90. The percentage is computed over the total row count,… |
INVALID_LEI_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not an LEI: 18 uppercase letters or digits followed by two digits. |
INVALID_LEI_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not an LEI: 18 uppercase letters or digits followed by two digits. The percentage is computed over the total… |
INVALID_LONGITUDE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of column values that are not a valid longitude: values outside the range -180 to 180. |
INVALID_LONGITUDE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a valid longitude: values outside the range -180 to 180. The percentage is computed over the total row… |
INVALID_NL_BSN_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a Dutch citizen service number (BSN) of eight or nine digits. |
INVALID_NL_BSN_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a Dutch citizen service number (BSN) of eight or nine digits. The percentage is computed over the total… |
INVALID_NUMERIC_TYPE_CAST_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that cannot be parsed as numeric. Use this function to detect non-numeric data in columns that are expected to… |
INVALID_NUMERIC_TYPE_CAST_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that cannot be parsed as numeric. The percentage is computed over the total row count, including NULL values in the… |
INVALID_PERCENTAGE_RANGE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are outside the range for a percentage, 0 to 100 inclusive. |
INVALID_PERCENTAGE_RANGE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are outside the range for a percentage, 0 to 100 inclusive. The percentage is computed over the total row count,… |
INVALID_PERM_ID_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a PermID: the literal 1- followed by 1 to 15 digits. |
INVALID_PERM_ID_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a PermID: the literal 1- followed by 1 to 15 digits. The percentage is computed over the total row count,… |
INVALID_PL_PESEL_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a Polish PESEL number: eleven digits that encode a possible birth date. |
INVALID_PL_PESEL_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a Polish PESEL number: eleven digits that encode a possible birth date. The percentage is computed over… |
INVALID_PROBABILITY_RANGE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are outside the range for a probability, 0 to 1 inclusive. |
INVALID_PROBABILITY_RANGE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are outside the range for a probability, 0 to 1 inclusive. The percentage is computed over the total row count,… |
INVALID_SEDOL_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a SEDOL: six uppercase consonants or digits followed by a digit. |
INVALID_SEDOL_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a SEDOL: six uppercase consonants or digits followed by a digit. The percentage is computed over the total… |
INVALID_TIMESTAMP_STRING_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that can’t be parsed as a timestamp or a date. |
INVALID_TIMESTAMP_STRING_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that can’t be parsed as a timestamp or a date. The percentage is computed over the total row count, including NULL… |
INVALID_TR_ID_NO_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a Turkish national identification number: eleven digits that do not begin with zero. |
INVALID_TR_ID_NO_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a Turkish national identification number: eleven digits that do not begin with zero. The percentage is… |
INVALID_UK_NINO_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a UK National Insurance number: two letters, six digits, and a letter from A to D. |
INVALID_UK_NINO_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a UK National Insurance number: two letters, six digits, and a letter from A to D. The percentage is… |
INVALID_UK_POSTAL_CODE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a UK postcode in the outward and inward form. |
INVALID_UK_POSTAL_CODE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a UK postcode in the outward and inward form. The percentage is computed over the total row count,… |
INVALID_USA_PHONE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a U.S. phone number, with or without a +1 country code, parentheses, and space, period, or hyphen… |
INVALID_USA_PHONE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a U.S. phone number, with or without a +1 country code, parentheses, and space, period, or hyphen… |
INVALID_USA_STATE_CODE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a two-letter code for one of the 50 U.S. states or the District of Columbia. |
INVALID_USA_STATE_CODE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a two-letter code for one of the 50 U.S. states or the District of Columbia. The percentage is computed… |
INVALID_USA_ZIP_CODE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a U.S. ZIP Code in 5-digit (12345) or ZIP+4 (12345-6789) form. |
INVALID_USA_ZIP_CODE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a U.S. ZIP Code in 5-digit (12345) or ZIP+4 (12345-6789) form. The percentage is computed over the total… |
INVALID_UUID_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not a UUID in the hyphenated 8-4-4-4-12 hexadecimal form. |
INVALID_UUID_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not a UUID in the hyphenated 8-4-4-4-12 hexadecimal form. The percentage is computed over the total row count,… |
JS_DIVERGENCE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the Jensen-Shannon divergence (base 2) of the values in the column, comparing the values in the current window with the values in the baseline. The… |
JS_DIVERGENCE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the Jensen-Shannon divergence (base 2) of the values in the column, comparing the values in the current window with the values in the baseline. The… |
JS_DIVERGENCE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the Jensen-Shannon divergence (base 2) of the values in the column, comparing the values in the current window with the values in the baseline. The… |
JS_DIVERGENCE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the Jensen-Shannon divergence (base 2) of the values in the column, comparing the values in the current window with the values in the baseline. The… |
KS_TEST_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the two-sample Kolmogorov-Smirnov D statistic for the values in the column: the largest gap between the cumulative distribution of the values in the… |
KS_TEST_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the two-sample Kolmogorov-Smirnov D statistic for the values in the column: the largest gap between the cumulative distribution of the values in the… |
KS_TEST_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the two-sample Kolmogorov-Smirnov D statistic for the values in the column: the largest gap between the cumulative distribution of the values in the… |
KS_TEST_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the two-sample Kolmogorov-Smirnov D statistic for the values in the column: the largest gap between the cumulative distribution of the values in the… |
KURTOSIS | supported | Core SQL functions | Returns the sample excess kurtosis of non-NULL records. If all records inside a group are NULL, the function returns NULL. |
MAEEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the mean absolute error (MAE) between a column of predicted values and a column of actual values. MAE is the average size of an error, in the same… |
MAPEEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the mean absolute percentage error (MAPE) between a column of predicted values and a column of actual values. MAPE is the average size of an error,… |
MAX | supported | Core SQL functions | Returns the maximum value for the records within expr. NULL values are ignored unless all the records are NULL, in which case a NULL value is returned. |
MAX_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the maximum of the values in the column in the current window and the average of the same measurement over the baseline. |
MAX_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the maximum of the values in the column in the current window and the average of the same measurement over the baseline. |
MAX_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the maximum of the values in the column in the current window and the average of the same measurement over the baseline. |
MAX_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the maximum of the values in the column in the current window and the average of the same measurement over the baseline. |
MAX_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the maximum of the values in the column in the current window, relative to the average of the same measurement over the… |
MAX_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the maximum of the values in the column in the current window, relative to the average of the same measurement over the… |
MAX_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the maximum of the values in the column in the current window, relative to the average of the same measurement over the… |
MAX_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the maximum of the values in the column in the current window, relative to the average of the same measurement over the… |
MEAN_ERROREnterprise+ | supported | Governance (policies, tags, data quality) | Returns the mean signed error between a column of predicted values and a column of actual values, where each error is the actual value minus the predicted… |
MEDIAN | supported | Core SQL functions | Determines the median of a set of values. |
MEDIAN_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the median of the values in the column in the current window and the average of the same measurement over the baseline. |
MEDIAN_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the median of the values in the column in the current window and the average of the same measurement over the baseline. |
MEDIAN_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the median of the values in the column in the current window and the average of the same measurement over the baseline. |
MEDIAN_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the median of the values in the column in the current window and the average of the same measurement over the baseline. |
MEDIAN_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the median of the values in the column in the current window, relative to the average of the same measurement over the… |
MEDIAN_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the median of the values in the column in the current window, relative to the average of the same measurement over the… |
MEDIAN_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the median of the values in the column in the current window, relative to the average of the same measurement over the… |
MEDIAN_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the median of the values in the column in the current window, relative to the average of the same measurement over the… |
MIN | supported | Core SQL functions | Returns the minimum value for the records within expr. NULL values are ignored unless all the records are NULL, in which case a NULL value is returned. |
MIN_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the minimum of the values in the column in the current window and the average of the same measurement over the baseline. |
MIN_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the minimum of the values in the column in the current window and the average of the same measurement over the baseline. |
MIN_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the minimum of the values in the column in the current window and the average of the same measurement over the baseline. |
MIN_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the minimum of the values in the column in the current window and the average of the same measurement over the baseline. |
MIN_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the minimum of the values in the column in the current window, relative to the average of the same measurement over the… |
MIN_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the minimum of the values in the column in the current window, relative to the average of the same measurement over the… |
MIN_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the minimum of the values in the column in the current window, relative to the average of the same measurement over the… |
MIN_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the minimum of the values in the column in the current window, relative to the average of the same measurement over the… |
MISSING_VALUE_COUNT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of distinct non-NULL values in the column that appear in the baseline but not in the current window. Use this function on a column with few… |
MISSING_VALUE_COUNT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of distinct non-NULL values in the column that appear in the baseline but not in the current window. Use this function on a column with few… |
MISSING_VALUE_COUNT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of distinct non-NULL values in the column that appear in the baseline but not in the current window. Use this function on a column with few… |
MISSING_VALUE_COUNT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of distinct non-NULL values in the column that appear in the baseline but not in the current window. Use this function on a column with few… |
NAN_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are NaN (not a number). |
NAN_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are NaN (not a number). The percentage is computed over the total row count, including NULL values in the… |
NEGATIVE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of column values that are negative for the specified column in a table. Use this function to validate columns that should never be negative,… |
NEGATIVE_COUNT_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of negative values in the column in the current window and the average of the same measurement over the baseline. |
NEGATIVE_COUNT_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of negative values in the column in the current window and the average of the same measurement over the baseline. |
NEGATIVE_COUNT_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of negative values in the column in the current window and the average of the same measurement over the baseline. |
NEGATIVE_COUNT_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of negative values in the column in the current window and the average of the same measurement over the baseline. |
NEGATIVE_COUNT_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of negative values in the column in the current window, relative to the average of the same measurement over the… |
NEGATIVE_COUNT_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of negative values in the column in the current window, relative to the average of the same measurement over the… |
NEGATIVE_COUNT_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of negative values in the column in the current window, relative to the average of the same measurement over the… |
NEGATIVE_COUNT_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of negative values in the column in the current window, relative to the average of the same measurement over the… |
NEGATIVE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are negative for the specified column in a table. The percentage is computed over the total row count, including… |
NEGATIVE_PERCENT_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are negative in the current window and the average of the same measurement over the… |
NEGATIVE_PERCENT_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are negative in the current window and the average of the same measurement over the… |
NEGATIVE_PERCENT_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are negative in the current window and the average of the same measurement over the… |
NEGATIVE_PERCENT_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are negative in the current window and the average of the same measurement over the… |
NEGATIVE_PERCENT_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are negative in the current window, relative to the average of the same… |
NEGATIVE_PERCENT_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are negative in the current window, relative to the average of the same… |
NEGATIVE_PERCENT_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are negative in the current window, relative to the average of the same… |
NEGATIVE_PERCENT_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are negative in the current window, relative to the average of the same… |
NEW_VALUE_COUNT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of distinct non-NULL values in the column that appear in the current window but not in the baseline. Use this function on a column with few… |
NEW_VALUE_COUNT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of distinct non-NULL values in the column that appear in the current window but not in the baseline. Use this function on a column with few… |
NEW_VALUE_COUNT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of distinct non-NULL values in the column that appear in the current window but not in the baseline. Use this function on a column with few… |
NEW_VALUE_COUNT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of distinct non-NULL values in the column that appear in the current window but not in the baseline. Use this function on a column with few… |
NOT_FRIDAY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that do not fall on a Friday. |
NOT_FRIDAY_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that do not fall on a Friday. The percentage is computed over the total row count, including NULL values in the… |
NOT_IN_FUTURE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of column values that are not in the future relative to the scheduled evaluation time. Use this function to check that event or transaction… |
NOT_IN_FUTURE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not in the future relative to the scheduled evaluation time. The percentage is computed over the total row… |
NOT_MONDAY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that do not fall on a Monday. |
NOT_MONDAY_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that do not fall on a Monday. The percentage is computed over the total row count, including NULL values in the… |
NOT_NULL_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of column values that are not NULL for the specified column in a table. |
NOT_NULL_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not NULL for the specified column in a table. The percentage is computed over the total row count, including… |
NOT_SATURDAY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that do not fall on a Saturday. |
NOT_SATURDAY_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that do not fall on a Saturday. The percentage is computed over the total row count, including NULL values in the… |
NOT_SUNDAY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that do not fall on a Sunday. |
NOT_SUNDAY_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that do not fall on a Sunday. The percentage is computed over the total row count, including NULL values in the… |
NOT_THURSDAY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that do not fall on a Thursday. |
NOT_THURSDAY_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that do not fall on a Thursday. The percentage is computed over the total row count, including NULL values in the… |
NOT_TODAY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not on the date of the scheduled evaluation time. |
NOT_TODAY_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not on the date of the scheduled evaluation time. The percentage is computed over the total row count,… |
NOT_TUESDAY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that do not fall on a Tuesday. |
NOT_TUESDAY_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that do not fall on a Tuesday. The percentage is computed over the total row count, including NULL values in the… |
NOT_WEDNESDAY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that do not fall on a Wednesday. |
NOT_WEDNESDAY_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that do not fall on a Wednesday. The percentage is computed over the total row count, including NULL values in the… |
NOT_WEEKDAY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that fall on a Saturday or a Sunday. |
NOT_WEEKDAY_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that fall on a Saturday or a Sunday. The percentage is computed over the total row count, including NULL values in the… |
NOT_YESTERDAY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are not on the day before the date of the scheduled evaluation time. |
NOT_YESTERDAY_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are not on the day before the date of the scheduled evaluation time. The percentage is computed over the total row… |
NULL_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the total number of NULL values for the specified column in a table. |
NULL_COUNT_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of NULL values in the column in the current window and the average of the same measurement over the baseline. |
NULL_COUNT_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of NULL values in the column in the current window and the average of the same measurement over the baseline. |
NULL_COUNT_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of NULL values in the column in the current window and the average of the same measurement over the baseline. |
NULL_COUNT_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of NULL values in the column in the current window and the average of the same measurement over the baseline. |
NULL_COUNT_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of NULL values in the column in the current window, relative to the average of the same measurement over the… |
NULL_COUNT_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of NULL values in the column in the current window, relative to the average of the same measurement over the… |
NULL_COUNT_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of NULL values in the column in the current window, relative to the average of the same measurement over the… |
NULL_COUNT_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of NULL values in the column in the current window, relative to the average of the same measurement over the… |
NULL_KEYWORD_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are a text placeholder for a missing value, such as 'null' or 'n/a', rather than a SQL NULL. |
NULL_KEYWORD_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are a text placeholder for a missing value, such as 'null' or 'n/a', rather than a SQL NULL. The percentage is… |
NULL_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of columns values that are NULL for the specified column in a table. |
NULL_PERCENT_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are NULL in the current window and the average of the same measurement over the… |
NULL_PERCENT_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are NULL in the current window and the average of the same measurement over the… |
NULL_PERCENT_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are NULL in the current window and the average of the same measurement over the… |
NULL_PERCENT_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are NULL in the current window and the average of the same measurement over the… |
NULL_PERCENT_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are NULL in the current window, relative to the average of the same measurement… |
NULL_PERCENT_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are NULL in the current window, relative to the average of the same measurement… |
NULL_PERCENT_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are NULL in the current window, relative to the average of the same measurement… |
NULL_PERCENT_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are NULL in the current window, relative to the average of the same measurement… |
OUTLIER_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL, non-NaN values in a column that fall outside the asymmetric Tukey fences for the column. |
OUTLIER_IQR_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL, non-NaN values in a column that fall outside the standard Tukey fences (1.5 times the interquartile range) for the column. |
OUTLIER_IQR_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of a column’s values that fall outside the standard Tukey fences (1.5 times the interquartile range) for the column. |
OUTLIER_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of a column’s values that fall outside the asymmetric Tukey fences for the column. |
OUTLIER_ZSCORE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL, non-NaN values in a column whose absolute Z-score exceeds 3. |
OUTLIER_ZSCORE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of a column’s values whose absolute Z-score exceeds 3. |
PSI_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the population stability index (PSI) of the values in the column, comparing the values in the current window with the values in the baseline. A higher… |
PSI_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the population stability index (PSI) of the values in the column, comparing the values in the current window with the values in the baseline. A higher… |
PSI_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the population stability index (PSI) of the values in the column, comparing the values in the current window with the values in the baseline. A higher… |
PSI_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the population stability index (PSI) of the values in the column, comparing the values in the current window with the values in the baseline. A higher… |
REFERENTIAL_INTEGRITY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of rows in the source table where the column value does not have a corresponding match in the referenced table. These unmatched rows are… |
RMSEEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the root mean squared error (RMSE) between a column of predicted values and a column of actual values. RMSE is in the same units as the values, and it… |
ROWS_IN_PAST_DAY_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that fall in the 24 hours before the scheduled evaluation time. |
ROWS_IN_PAST_DAY_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that fall in the 24 hours before the scheduled evaluation time. The percentage is computed over the total row count,… |
ROWS_IN_PAST_HOUR_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that fall in the hour before the scheduled evaluation time. |
ROWS_IN_PAST_HOUR_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that fall in the hour before the scheduled evaluation time. The percentage is computed over the total row count,… |
ROWS_IN_PAST_MONTH_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that fall in the 30 days before the scheduled evaluation time. |
ROWS_IN_PAST_MONTH_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that fall in the 30 days before the scheduled evaluation time. The percentage is computed over the total row count,… |
ROWS_IN_PAST_WEEK_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that fall in the 7 days before the scheduled evaluation time. |
ROWS_IN_PAST_WEEK_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that fall in the 7 days before the scheduled evaluation time. The percentage is computed over the total row count,… |
ROWS_IN_PAST_YEAR_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that fall in the 365 days before the scheduled evaluation time. |
ROWS_IN_PAST_YEAR_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that fall in the 365 days before the scheduled evaluation time. The percentage is computed over the total row count,… |
ROW_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the total number of rows in a table. |
ROW_COUNT_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of rows in the table in the current window and the average of the same measurement over the baseline. |
ROW_COUNT_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of rows in the table in the current window and the average of the same measurement over the baseline. |
ROW_COUNT_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of rows in the table in the current window and the average of the same measurement over the baseline. |
ROW_COUNT_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of rows in the table in the current window and the average of the same measurement over the baseline. |
ROW_COUNT_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of rows in the table in the current window, relative to the average of the same measurement over the baseline. |
ROW_COUNT_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of rows in the table in the current window, relative to the average of the same measurement over the baseline. |
ROW_COUNT_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of rows in the table in the current window, relative to the average of the same measurement over the baseline. |
ROW_COUNT_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of rows in the table in the current window, relative to the average of the same measurement over the baseline. |
ROW_COUNT_DIFFERENCEEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of rows in the associated table minus the number of rows in a reference table. Use this function to check that a table, such as a copy or… |
R_SQUAREDEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the coefficient of determination (R²) of a column of predicted values against a column of actual values. R² measures the share of the variation in the… |
SCHEMA_CHANGE_ADD_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of columns added to the associated table or view since the previous evaluation of the function. On the first evaluation, the function… |
SCHEMA_CHANGE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of schema change operations (column add, drop, rename, or type change) detected on the associated table since the previous evaluation of the… |
SCHEMA_CHANGE_DROP_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of columns dropped from the associated table or view since the previous evaluation of the function. On the first evaluation, the function… |
SCHEMA_CHANGE_TYPE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of columns whose data type changed in the associated table or view since the previous evaluation of the function. On the first evaluation,… |
SECONDS_SINCE_ROW_COUNT_CHANGEEnterprise+ | not supported | Governance (policies, tags, data quality) | Returns the number of seconds since the last committed DML operation that changed the number of rows in the associated table. Use this function to detect a… |
SKEW | supported | Core SQL functions | Returns the sample skewness of non-NULL records. If all records inside a group are NULL, the function returns NULL. |
SOURCE_TARGET_LAGEnterprise+ | supported | Governance (policies, tags, data quality) | Returns how far, in seconds, the latest timestamp in a target table trails the latest timestamp in a source table. Use this function to monitor whether a table… |
SPECIAL_CHARACTER_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that contain characters outside the alphanumeric range (not A-Z, a-z, or 0-9). Spaces, punctuation, and Unicode… |
SPECIAL_CHARACTER_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that contain characters outside the alphanumeric range (not A-Z, a-z, or 0-9). The percentage is computed over the… |
STDDEV | supported | Core SQL functions | Returns the sample standard deviation (square root of sample variance) of non-NULL values. STDDEV and STDDEV_SAMP are aliases for the same function. |
STDDEV_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the sample standard deviation of the values in the column in the current window and the average of the same measurement over the… |
STDDEV_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the sample standard deviation of the values in the column in the current window and the average of the same measurement over the… |
STDDEV_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the sample standard deviation of the values in the column in the current window and the average of the same measurement over the… |
STDDEV_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the sample standard deviation of the values in the column in the current window and the average of the same measurement over the… |
STDDEV_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the sample standard deviation of the values in the column in the current window, relative to the average of the same… |
STDDEV_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the sample standard deviation of the values in the column in the current window, relative to the average of the same… |
STDDEV_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the sample standard deviation of the values in the column in the current window, relative to the average of the same… |
STDDEV_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the sample standard deviation of the values in the column in the current window, relative to the average of the same… |
STRING_LENGTH_AVGEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the average string length of non-NULL values for the specified column in a table. Use this function to monitor length drift over time. |
STRING_LENGTH_MAXEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the maximum string length of non-NULL values for the specified column in a table. Use this function to detect overflow or unexpectedly long values. |
STRING_LENGTH_MINEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the minimum string length of non-NULL values for the specified column in a table. Use this function to detect truncation or unexpectedly short values. |
STRING_LENGTH_STDDEVEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the sample standard deviation of the string length of non-NULL values for the specified column in a table. |
SUM | supported | Core SQL functions | Returns the sum of non-NULL records for expr. You can use the DISTINCT keyword to compute the sum of unique non-null values. If all records inside a group are… |
SUM_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the sum of the values in the column in the current window and the average of the same measurement over the baseline. |
SUM_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the sum of the values in the column in the current window and the average of the same measurement over the baseline. |
SUM_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the sum of the values in the column in the current window and the average of the same measurement over the baseline. |
SUM_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the sum of the values in the column in the current window and the average of the same measurement over the baseline. |
SUM_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the sum of the values in the column in the current window, relative to the average of the same measurement over the baseline. |
SUM_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the sum of the values in the column in the current window, relative to the average of the same measurement over the baseline. |
SUM_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the sum of the values in the column in the current window, relative to the average of the same measurement over the baseline. |
SUM_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the sum of the values in the column in the current window, relative to the average of the same measurement over the baseline. |
TABLE_SIZE_BYTESEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the logical size, in bytes, of the associated table. The value is the same as the BYTES column of the TABLES view in the Information Schema. |
TRUE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are TRUE. |
TRUE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are TRUE. The percentage is computed over the total row count, including NULL values in the denominator. |
UNIQUE_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the number of distinct non-NULL values for the specified columns in a table. |
UNIQUE_COUNT_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of distinct non-NULL values in the column in the current window and the average of the same measurement over the… |
UNIQUE_COUNT_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of distinct non-NULL values in the column in the current window and the average of the same measurement over the… |
UNIQUE_COUNT_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of distinct non-NULL values in the column in the current window and the average of the same measurement over the… |
UNIQUE_COUNT_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of distinct non-NULL values in the column in the current window and the average of the same measurement over the… |
UNIQUE_COUNT_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of distinct non-NULL values in the column in the current window, relative to the average of the same measurement… |
UNIQUE_COUNT_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of distinct non-NULL values in the column in the current window, relative to the average of the same measurement… |
UNIQUE_COUNT_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of distinct non-NULL values in the column in the current window, relative to the average of the same measurement… |
UNIQUE_COUNT_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of distinct non-NULL values in the column in the current window, relative to the average of the same measurement… |
UNIQUE_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of non-NULL rows whose value occurs exactly once in the specified column. NULL values are excluded from both the numerator and the… |
UNIX_ZERO_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that are equal to the Unix epoch, 1970-01-01. |
UNIX_ZERO_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are equal to the Unix epoch, 1970-01-01. The percentage is computed over the total row count, including NULL… |
UNTRIMMED_STRING_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of non-NULL column values that have leading or trailing spaces. Tabs, line breaks, and no-break spaces at the start or end of a value aren’t… |
UNTRIMMED_STRING_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that have leading or trailing spaces. Tabs, line breaks, and no-break spaces at the start or end of a value aren’t… |
VARIANCE | supported | Core SQL functions | Returns the sample variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. |
ZERO_COUNTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the count of column values that are equal to zero for the specified column in a table. Use this function to detect missing or placeholder data in… |
ZERO_COUNT_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of zero values in the column in the current window and the average of the same measurement over the baseline. |
ZERO_COUNT_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of zero values in the column in the current window and the average of the same measurement over the baseline. |
ZERO_COUNT_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of zero values in the column in the current window and the average of the same measurement over the baseline. |
ZERO_COUNT_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the number of zero values in the column in the current window and the average of the same measurement over the baseline. |
ZERO_COUNT_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of zero values in the column in the current window, relative to the average of the same measurement over the… |
ZERO_COUNT_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of zero values in the column in the current window, relative to the average of the same measurement over the… |
ZERO_COUNT_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of zero values in the column in the current window, relative to the average of the same measurement over the… |
ZERO_COUNT_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the number of zero values in the column in the current window, relative to the average of the same measurement over the… |
ZERO_PERCENTEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage of column values that are equal to zero for the specified column in a table. The percentage is computed over the total row count,… |
ZERO_PERCENT_CHANGE_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are zero in the current window and the average of the same measurement over the… |
ZERO_PERCENT_CHANGE_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are zero in the current window and the average of the same measurement over the… |
ZERO_PERCENT_CHANGE_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are zero in the current window and the average of the same measurement over the… |
ZERO_PERCENT_CHANGE_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the difference between the percentage of values in the column that are zero in the current window and the average of the same measurement over the… |
ZERO_PERCENT_CHANGE_PERCENT_LAST_EIGHT_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are zero in the current window, relative to the average of the same measurement… |
ZERO_PERCENT_CHANGE_PERCENT_LAST_FOUR_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are zero in the current window, relative to the average of the same measurement… |
ZERO_PERCENT_CHANGE_PERCENT_LAST_PERIODEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are zero in the current window, relative to the average of the same measurement… |
ZERO_PERCENT_CHANGE_PERCENT_LAST_TWO_PERIODSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the percentage change of the percentage of values in the column that are zero in the current window, relative to the average of the same measurement… |
Date & time functions (50)
| Function | Support | Area | Description |
|---|---|---|---|
ADD_MONTHS | supported | Core SQL functions | Adds or subtracts a specified number of months to a date or timestamp, preserving the end-of-month information. |
CONVERT_TIMEZONE | supported | Core SQL functions | Converts a timestamp to another time zone. |
DATE | supported | Core SQL functions | Converts an input expression to a date: |
DATEADD | supported | Core SQL functions | Adds the specified value for the specified date or time part to a date, time, or timestamp. |
DATEDIFF | supported | Core SQL functions | Calculates the difference between two date, time, or timestamp expressions based on the date or time part requested. The function returns the result of… |
DATE_FROM_PARTS | supported | Core SQL functions | Creates a date from individual numeric components that represent the year, month, and day of the month. |
DATE_PART | supported | Core SQL functions | Extracts the specified date or time part from a date, time, or timestamp. |
DATE_TRUNC | supported | Core SQL functions | Truncates a DATE, TIME, or TIMESTAMP value to the specified precision. For example, truncating a timestamp down to the quarter returns the timestamp… |
DAY | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
DAYNAME | supported | Core SQL functions | Extracts the three-letter day-of-week name from the specified date or timestamp. |
DAYOFMONTH | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
DAYOFWEEK | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
DAYOFWEEKISO | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
DAYOFYEAR | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
EXTRACT | supported | Core SQL functions | Extracts the specified date or time part from a date, interval, time, or timestamp. |
HOUR | supported | Core SQL functions | Extracts the corresponding time part from a time, interval, or timestamp value. |
LAST_DAY | supported | Core SQL functions | Returns the last day of the specified date part for a date or timestamp. This function is commonly used to return the last day of the month for a date or… |
LAST_SUCCESSFUL_SCHEDULED_TIME | supported | Governance (policies, tags, data quality) | Returns the timestamp representing the scheduled time for the most recent successful evaluation of the alert condition, where no errors occurred when executing… |
MINUTE | supported | Core SQL functions | Extracts the corresponding time part from a time, interval, or timestamp value. |
MONTH | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
MONTHNAME | supported | Core SQL functions | Returns the three-letter month name for the specified date or timestamp. |
MONTHS_BETWEEN | supported | Core SQL functions | Returns the number of months between two DATE or TIMESTAMP values. |
NEXT_DAY | supported | Core SQL functions | Returns the date of the first specified day of week (DOW) that occurs after the input date. |
PREVIOUS_DAY | supported | Core SQL functions | Returns the date of the first specified day of week (DOW) that occurs before the input date. |
QUARTER | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
SCHEDULED_TIME | supported | Core SQL functions | Returns the timestamp representing the scheduled time of the current alert. Refer to Specifying timestamps based on alert schedules. |
SECOND | supported | Core SQL functions | Extracts the corresponding time part from a time, interval, or timestamp value. |
TIME | supported | Core SQL functions | Converts an input expression into a time. |
TIMEADD | supported | Core SQL functions | Adds the specified value for the specified date or time part to a date, time, or timestamp. |
TIMEDIFF | supported | Core SQL functions | Calculates the difference between two date, time, or timestamp expressions based on the specified date or time part. The function returns the result of… |
TIMESTAMPADD | supported | Core SQL functions | Adds the specified value for the specified date or time part to a date, time, or timestamp. |
TIMESTAMPDIFF | supported | Core SQL functions | Calculates the difference between two date, time, or timestamp expressions based on the specified date or time part. The function returns the result of… |
TIMESTAMP_FROM_PARTS | supported | Core SQL functions | Creates a timestamp from individual numeric components. If no time zone is in effect, the function can be used to create a timestamp from a date expression and… |
TIME_FROM_PARTS | supported | Core SQL functions | Creates a time from individual numeric components. |
TIME_SLICE | supported | Core SQL functions | Calculates the beginning or end of a “slice” of time, where the length of the slice is a multiple of a standard unit of time (minute, hour, day, etc.). |
TO_DATE | supported | Core SQL functions | Converts an input expression to a date: |
TO_TIME | supported | Core SQL functions | Converts an input expression into a time. |
TO_TIMESTAMP | supported | Core SQL functions | Converts an input expression into the corresponding timestamp: |
TO_TIMESTAMP_LTZ | supported | Core SQL functions | Converts an input expression into the corresponding timestamp: |
TO_TIMESTAMP_NTZ | supported | Core SQL functions | Converts an input expression into the corresponding timestamp: |
TO_TIMESTAMP_TZ | supported | Core SQL functions | Converts an input expression into the corresponding timestamp: |
TRUNC | supported | Core SQL functions | Rounds the input expression down to the nearest (or equal) value closer to zero. Depending on the value you specify as the scale parameter, the transformation… |
TRUNCATE | supported | Core SQL functions | Rounds the input expression down to the nearest (or equal) value closer to zero. Depending on the value you specify as the scale parameter, the transformation… |
TRY_TO_DATE | supported | Core SQL functions | A special version of the TO_DATE function that performs the same operation (i.e. converts an input expression to a date), but with error-handling support (i.e.… |
WEEK | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
WEEKISO | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
WEEKOFYEAR | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
YEAR | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
YEAROFWEEK | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
YEAROFWEEKISO | supported | Core SQL functions | Extracts the corresponding date part from a date or timestamp. |
Differential privacy functions (3)
| Function | Support | Area | Description |
|---|---|---|---|
DP_INTERVAL_HIGHEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the upper bound of the noise interval, which is used by differential privacy to help analysts determine how much noise has been introduced into query… |
DP_INTERVAL_LOWEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the lower bound of the noise interval, which is used by differential privacy to help analysts determine how much noise has been introduced into query… |
ESTIMATE_REMAINING_DP_AGGREGATESEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the estimated number of aggregation functions that can be run before the limit of a privacy budget is reached. The number of remaining aggregates is… |
Encryption functions (6)
| Function | Support | Area | Description |
|---|---|---|---|
DECRYPT | supported | Core SQL functions | Decrypts a BINARY value using a VARCHAR passphrase. |
DECRYPT_RAW | supported | Core SQL functions | Decrypts a BINARY value using a BINARY key. |
ENCRYPT | supported | Core SQL functions | Encrypts a VARCHAR or BINARY value using a VARCHAR passphrase. |
ENCRYPT_RAW | supported | Core SQL functions | Encrypts a BINARY value using a BINARY key. |
TRY_DECRYPT | supported | Core SQL functions | A special version of DECRYPT that returns a NULL value if an error occurs during decryption. |
TRY_DECRYPT_RAW | supported | Core SQL functions | A special version of DECRYPT_RAW that returns a NULL value if an error occurs during decryption. |
File functions (26)
| Function | Support | Area | Description |
|---|---|---|---|
AI_COMPLETEpreview | deferred | AI & ML | Generates a response (completion) from text, images, documents, audio, or video using a supported language model. The input types you can use depend on the… |
AI_TRANSCRIBE | deferred | AI & ML | AI_TRANSCRIBE is a fully managed SQL function that transcribes audio and video files stored in a stage, extracting text, timestamps, and speaker information.… |
BUILD_SCOPED_FILE_URL | supported | Data loading & unloading | Generates a scoped Snowflake file URL to a staged file using the stage name and relative file path as inputs. |
BUILD_STAGE_FILE_URL | supported | Data loading & unloading | Generates a Snowflake file URL to a staged file using the stage name and relative file path as inputs. A file URL permits prolonged access to a specified file.… |
FL_FILTER_PAGES | not supported | Data loading & unloading | Selects pages of a multi-page document for processing by Cortex AI Functions for document intelligence. |
FL_GET_CONTENT_TYPE | supported | Data loading & unloading | Returns the content type (also known as the MIME type) of a FILE. |
FL_GET_ETAG | supported | Data loading & unloading | Returns the content hash (ETAG) of a FILE. |
FL_GET_FILE_TYPE | supported | Data loading & unloading | Returns the file type (modality) of a FILE. This is a more general classification than the content type (see FL_GET_CONTENT_TYPE). |
FL_GET_LAST_MODIFIED | supported | Data loading & unloading | Returns the last modified date of a FILE. |
FL_GET_RELATIVE_PATH | supported | Data loading & unloading | Returns the relative path of a FILE. |
FL_GET_SCOPED_FILE_URL | supported | Data loading & unloading | Returns the scoped URL of a FILE. |
FL_GET_SIZE | supported | Data loading & unloading | Returns the size, in bytes, of a FILE. |
FL_GET_STAGE | supported | Data loading & unloading | Returns the stage name of a FILE. |
FL_GET_STAGE_FILE_URL | supported | Data loading & unloading | Returns the stage URL of a FILE. |
FL_IS_AUDIO | supported | Data loading & unloading | Checks if the input is an audio FILE. |
FL_IS_COMPRESSED | supported | Data loading & unloading | Checks if the input is a compressed FILE. |
FL_IS_DOCUMENT | supported | Data loading & unloading | Checks if the input is a document FILE. |
FL_IS_IMAGE | supported | Data loading & unloading | Checks if the input is an image FILE. |
FL_IS_VIDEO | supported | Data loading & unloading | Checks if the input is a video FILE. |
GET_ABSOLUTE_PATH | supported | Data loading & unloading | Retrieves the absolute path of a staged file using the stage name and path of the file relative to its location in the stage as inputs. |
GET_PRESIGNED_URL | supported | Data loading & unloading | Generates a pre-signed URL to a file on a stage using the stage name and relative file path as inputs. |
GET_RELATIVE_PATH | supported | Data loading & unloading | Extracts the path of a staged file relative to its location in the stage using the stage name and absolute file path in cloud storage as inputs. |
GET_STAGE_LOCATION | supported | Data loading & unloading | Retrieves the URL for an external or internal named stage using the stage name as the input. |
PARSE_DOCUMENT | deferred | AI & ML | Notice |
TO_FILE | supported | Data loading & unloading | Constructs a value of type FILE from a file location or from metadata. |
TRY_TO_FILE | supported | Data loading & unloading | A version of TO_FILE that returns NULL instead of raising an error. |
Geospatial functions (101)
| Function | Support | Area | Description |
|---|---|---|---|
H3_CELL_TO_BOUNDARY | supported | Core SQL functions | Returns the GEOGRAPHY object representing the boundary of an H3 cell. |
H3_CELL_TO_CHILDREN | supported | Core SQL functions | Returns an array of the INTEGER IDs of the children of an H3 cell for a given resolution. |
H3_CELL_TO_CHILDREN_STRING | supported | Core SQL functions | Returns an array of the VARCHAR values containing the hexadecimal IDs of the children of an H3 cell for a given resolution. |
H3_CELL_TO_PARENT | supported | Core SQL functions | Returns the ID of the parent of an H3 cell for a given resolution. The ID is returned as an INTEGER value (if an INTEGER value was provided as the input ID) or… |
H3_CELL_TO_POINT | supported | Core SQL functions | Returns the GEOGRAPHY object representing the Point that is the centroid of an H3 cell. |
H3_COMPACT_CELLS | supported | Core SQL functions | Returns an array of VARIANT values that contain the INTEGER IDs of fewer, larger H3 cells that cover the same area as the H3 cells in the input. For… |
H3_COMPACT_CELLS_STRINGS | supported | Core SQL functions | Returns an array of VARIANT values that contain the VARCHAR hexadecimal IDs of fewer, larger H3 cells that cover the same area as the H3 cells in the input.… |
H3_COVERAGE | supported | Core SQL functions | Returns an array of IDs (as INTEGER values) identifying the minimal set of H3 cells that completely cover a shape (specified by a GEOGRAPHY object). |
H3_COVERAGE_STRINGS | supported | Core SQL functions | Returns an array of hexadecimal IDs (as VARCHAR values) identifying the minimal set of H3 cells that completely cover a shape (specified by a GEOGRAPHY object). |
H3_GET_RESOLUTION | supported | Core SQL functions | Returns the resolution of an H3 cell. |
H3_GRID_DISK | supported | Core SQL functions | Returns an array of the IDs of the H3 cells that are within the specified grid distance (k_value) of the given cell. The grid distance, often written as k in… |
H3_GRID_DISTANCE | supported | Core SQL functions | Returns the distance between two H3 cells specified by their IDs. |
H3_GRID_PATH | supported | Core SQL functions | Returns an array of the IDs of the H3 cells that represent the line between two cells. The IDs in the returned ARRAY are INTEGER values (if INTEGER values were… |
H3_INT_TO_STRING | supported | Core SQL functions | Converts the INTEGER value of an H3 cell ID to hexadecimal format. |
H3_IS_PENTAGON | supported | Core SQL functions | Returns TRUE if the boundary of an H3 cell represents a pentagon. |
H3_IS_VALID_CELL | supported | Core SQL functions | Returns TRUE if the input represents a valid H3 cell. |
H3_LATLNG_TO_CELL | supported | Core SQL functions | Returns the INTEGER value of the H3 cell ID for a given latitude, longitude, and resolution. |
H3_LATLNG_TO_CELL_STRING | supported | Core SQL functions | Returns the H3 cell ID in hexadecimal format (as a VARCHAR value) for a given latitude, longitude, and resolution. |
H3_POINT_TO_CELL | supported | Core SQL functions | Returns the INTEGER value of an H3 cell ID for a Point (specified by a GEOGRAPHY object) at a given resolution. |
H3_POINT_TO_CELL_STRING | supported | Core SQL functions | Returns the hexadecimal value of an H3 cell ID for a Point (specified by a GEOGRAPHY object) at a given resolution. |
H3_POLYGON_TO_CELLS | supported | Core SQL functions | Returns an array of INTEGER values of the IDs of H3 cells that have centroids contained by a Polygon (specified by a GEOGRAPHY object). |
H3_POLYGON_TO_CELLS_STRINGS | supported | Core SQL functions | Returns an array of VARCHAR values of the hexadecimal IDs of H3 cells that have centroids contained by a Polygon (specified by a GEOGRAPHY object). |
H3_STRING_TO_INT | supported | Core SQL functions | Converts an H3 cell ID in hexadecimal format to an INTEGER value. |
H3_TRY_COVERAGE | supported | Core SQL functions | A special version of H3_COVERAGE that returns NULL instead of reporting an error when the number of H3 cells that cover a shape exceeds the allowed limit. The… |
H3_TRY_COVERAGE_STRINGS | supported | Core SQL functions | A special version of H3_COVERAGE_STRINGS that returns NULL instead of reporting an error when the number of H3 cells that cover a shape exceeds the allowed… |
H3_TRY_GRID_DISTANCE | supported | Core SQL functions | A special version of H3_GRID_DISTANCE that returns NULL if an error occurs when it attempts to return the distance between two H3 cells. |
H3_TRY_GRID_PATH | supported | Core SQL functions | A special version of H3_GRID_PATH that returns NULL if an error occurs when it attempts to return an array of VARIANT values that contain the IDs of the H3… |
H3_TRY_POLYGON_TO_CELLS | supported | Core SQL functions | A special version of H3_POLYGON_TO_CELLS that returns NULL if an error occurs when it attempts to return an array of INTEGER values of the IDs of H3 cells that… |
H3_TRY_POLYGON_TO_CELLS_STRINGS | supported | Core SQL functions | A special version of H3_POLYGON_TO_CELLS_STRINGS that returns NULL if an error occurs when it attempts to return an array of VARCHAR values of the hexadecimal… |
H3_UNCOMPACT_CELLS | supported | Core SQL functions | Returns an array of VARIANT values that contain the INTEGER IDs of H3 cells at the specified resolution that cover the same area as the H3 cells in the input. |
H3_UNCOMPACT_CELLS_STRINGS | supported | Core SQL functions | Returns an array of VARIANT values that contain the VARCHAR hexadecimal IDs of H3 cells at the specified resolution that cover the same area as the H3 cells in… |
HAVERSINE | supported | Core SQL functions | Calculates the great-circle distance in kilometers between two points on the Earth’s surface, using the Haversine formula. The two points are specified by… |
ST_AREA | supported | Core SQL functions | Returns the area of the Polygon(s) in a GEOGRAPHY or GEOMETRY object. |
ST_ASBINARY | supported | Core SQL functions | Given a value of type GEOGRAPHY or GEOMETRY, return the binary representation of that value in WKB (well-known binary) format. |
ST_ASEWKB | supported | Core SQL functions | Given a value of type GEOGRAPHY or GEOMETRY, return the binary representation of that value in EWKB (extended well-known binary) format. |
ST_ASEWKT | supported | Core SQL functions | Given a value of type GEOGRAPHY or GEOMETRY, return the text (VARCHAR) representation of that value in EWKT (extended well-known text) format. |
ST_ASGEOJSON | supported | Core SQL functions | Given a value of type GEOGRAPHY or GEOMETRY, return the GeoJSON representation of that value. |
ST_ASTEXT | supported | Core SQL functions | Given a value of type GEOGRAPHY or GEOMETRY, return the text (VARCHAR) representation of that value in WKT (well-known text) format. |
ST_ASWKB | supported | Core SQL functions | Given a value of type GEOGRAPHY or GEOMETRY, return the binary representation of that value in WKB (well-known binary) format. |
ST_ASWKT | supported | Core SQL functions | Given a value of type GEOGRAPHY or GEOMETRY, return the text (VARCHAR) representation of that value in WKT (well-known text) format. |
ST_AZIMUTH | supported | Core SQL functions | Given a Point that represents the origin (the location of the observer) and a specified Point, returns the azimuth in radians. Both Points must be either… |
ST_BUFFER | supported | Core SQL functions | Returns a GEOMETRY object that represents a MultiPolygon containing the points within a specified distance of the input GEOMETRY object. The returned object… |
ST_CENTROID | supported | Core SQL functions | Returns the Point representing the geometric center of a GEOGRAPHY or GEOMETRY object. |
ST_COLLECT | supported | Core SQL functions | There are two forms of ST_COLLECT: |
ST_CONTAINS | supported | Core SQL functions | Returns TRUE if a GEOGRAPHY or GEOMETRY object is completely inside another object of the same type. |
ST_COVEREDBY | supported | Core SQL functions | Returns TRUE if no point in one geospatial object is outside another geospatial object. In other words: |
ST_COVERS | supported | Core SQL functions | Returns TRUE if no point in one geospatial object is outside of another geospatial object. In other words: |
ST_DIFFERENCE | supported | Core SQL functions | Given two input GEOGRAPHY objects, returns a GEOGRAPHY object that represents the points in the first object that are not in the second object (i.e. the… |
ST_DIMENSION | supported | Core SQL functions | Given a value of type GEOGRAPHY or GEOMETRY, return the “dimension” of the value. The dimension of a GEOGRAPHY or GEOMETRY value is: |
ST_DISJOINT | supported | Core SQL functions | Returns TRUE if the two GEOGRAPHY objects or the two GEOMETRY objects are disjoint (i.e. do not share any portion of space). ST_DISJOINT is equivalent to NOT… |
ST_DISTANCE | supported | Core SQL functions | Returns the minimum great circle distance between two GEOGRAPHY or the minimum Euclidean distance between two GEOMETRY objects. |
ST_DWITHIN | supported | Core SQL functions | Returns TRUE if the minimum great circle distance between two points (two GEOGRAPHY objects) is within the specified distance. Otherwise, returns FALSE. |
ST_ENDPOINT | supported | Core SQL functions | Returns the last Point in a LineString. |
ST_ENVELOPEdeprecated | supported | Core SQL functions | Returns the minimum bounding box (a rectangular “envelope”) that encloses a specified GEOGRAPHY or GEOMETRY object. |
ST_GEOGFROMGEOHASH | supported | Core SQL functions | Returns a GEOGRAPHY object for the polygon that represents the boundaries of a geohash. |
ST_GEOGPOINTFROMGEOHASH | supported | Core SQL functions | Returns a GEOGRAPHY object for the Point that represents the center of a geohash. |
ST_GEOGRAPHYFROMWKB | supported | Core SQL functions | Parses a WKB (well-known binary) or EWKB (extended well-known binary) input and returns a value of type GEOGRAPHY. |
ST_GEOGRAPHYFROMWKT | supported | Core SQL functions | Parses a WKT (well-known text) or EWKT (extended well-known text) input and returns a value of type GEOGRAPHY. |
ST_GEOHASH | supported | Core SQL functions | Returns the geohash for a GEOGRAPHY or GEOMETRY object. A geohash is a short base32 string that identifies a great circle rectangle containing a location in… |
ST_GEOMETRYFROMWKB | supported | Core SQL functions | Parses a WKB (well-known binary) or EWKB (extended well-known binary) input and returns a value of type GEOMETRY. |
ST_GEOMETRYFROMWKT | supported | Core SQL functions | Parses a WKT (well-known text) or EWKT (extended well-known text) input and returns a value of type GEOMETRY. |
ST_GEOMFROMGEOHASH | supported | Core SQL functions | Returns a GEOMETRY object for the polygon that represents the boundaries of a geohash. |
ST_GEOMPOINT | supported | Core SQL functions | Constructs a GEOMETRY object that represents a Point with the specified longitude and latitude. |
ST_GEOMPOINTFROMGEOHASH | supported | Core SQL functions | Returns a GEOMETRY object for the point that represents center of a geohash. |
ST_HAUSDORFFDISTANCE | supported | Core SQL functions | Returns the discrete Hausdorff distance between two GEOGRAPHY objects. |
ST_INTERPOLATE | supported | Core SQL functions | Given an input GEOGRAPHY object, returns an interpolated object that is within a specified tolerance. |
ST_INTERSECTION | supported | Core SQL functions | Given two input GEOGRAPHY objects, returns a GEOGRAPHY object that represents the shape containing the set of points that are common to both input objects… |
ST_INTERSECTION_AGG | supported | Core SQL functions | Given a GEOGRAPHY column, returns a GEOGRAPHY object that represents the shape containing the combined set of points that are common to the shapes represented… |
ST_INTERSECTS | supported | Core SQL functions | Returns TRUE if the two GEOGRAPHY objects or the two GEOMETRY objects intersect (i.e. share any portion of space). |
ST_ISVALID | supported | Core SQL functions | Returns TRUE if the specified GEOGRAPHY or GEOMETRY object represents a valid shape. Examples of invalid shapes include shapes with self-intersections and… |
ST_LENGTH | supported | Core SQL functions | Returns the great circle length of the LineString(s) in a GEOGRAPHY object or the Euclidean length of the LineString(s) in a GEOMETRY object. |
ST_MAKEGEOMPOINT | supported | Core SQL functions | Constructs a GEOMETRY object that represents a Point with the specified longitude and latitude. |
ST_MAKELINE | supported | Core SQL functions | Constructs a GEOGRAPHY or GEOMETRY object that represents a line connecting the points in the input objects. |
ST_MAKEPOINT | supported | Core SQL functions | Constructs a GEOGRAPHY object that represents a point with the specified longitude and latitude. |
ST_MAKEPOLYGON | supported | Core SQL functions | Constructs a GEOGRAPHY or GEOMETRY object that represents a Polygon without holes. The function uses the specified LineString as the outer loop. |
ST_MAKEPOLYGONORIENTED | supported | Core SQL functions | Constructs a GEOGRAPHY object that represents a Polygon without holes. The function uses the specified LineString as the outer loop. |
ST_NPOINTS | supported | Core SQL functions | Returns the number of points in a GEOGRAPHY or GEOGRAPHY object. |
ST_NUMPOINTS | supported | Core SQL functions | Returns the number of points in a GEOGRAPHY or GEOGRAPHY object. |
ST_PERIMETER | supported | Core SQL functions | Returns the length of the perimeter of the polygon(s) in a GEOGRAPHY or GEOMETRY object. |
ST_POINT | supported | Core SQL functions | Constructs a GEOGRAPHY object that represents a point with the specified longitude and latitude. |
ST_POINTN | supported | Core SQL functions | Returns a Point at a specified index in a LineString. |
ST_POLYGON | supported | Core SQL functions | Constructs a GEOGRAPHY or GEOMETRY object that represents a Polygon without holes. The function uses the specified LineString as the outer loop. |
ST_SETSRID | supported | Core SQL functions | Returns a GEOMETRY object that has its SRID (spatial reference system identifier) set to the specified value. |
ST_SIMPLIFY | supported | Core SQL functions | Given an input GEOGRAPHY or GEOMETRY object that represents a Line or Polygon, returns a simpler approximation of the object. The function identifies and… |
ST_SRID | supported | Core SQL functions | Returns the SRID (spatial reference system identifier) of a GEOGRAPHY or GEOMETRY object. |
ST_STARTPOINT | supported | Core SQL functions | Returns the first Point in a LineString. |
ST_SYMDIFFERENCE | supported | Core SQL functions | Given two input GEOGRAPHY objects, returns a GEOGRAPHY object that represents the set of points from both input objects that are not part of the intersection… |
ST_TRANSFORM | supported | Core SQL functions | Converts a GEOMETRY object from one spatial reference system (SRS) to another. |
ST_UNION | supported | Core SQL functions | Given two input GEOGRAPHY objects, returns a GEOGRAPHY object that represents the combined set of shapes for both objects (i.e. the union of the two shapes). |
ST_UNION_AGG | supported | Core SQL functions | Given a GEOGRAPHY column, returns a GEOGRAPHY object that represents the combined set of points that are in at least one of the shapes represented by the… |
ST_WITHIN | supported | Core SQL functions | Returns true if the first geospatial object is fully contained by the second geospatial object. In other words: |
ST_X | supported | Core SQL functions | Returns the longitude (X coordinate) of a Point represented by a GEOGRAPHY or GEOMETRY object. |
ST_XMAX | supported | Core SQL functions | Returns the maximum longitude (X coordinate) of all points contained in the specified GEOGRAPHY or GEOMETRY object. |
ST_XMIN | supported | Core SQL functions | Returns the minimum longitude (X coordinate) of all points contained in the specified GEOGRAPHY or GEOMETRY object. |
ST_Y | supported | Core SQL functions | Returns the latitude (Y coordinate) of a Point represented by a GEOGRAPHY or GEOMETRY object. |
ST_YMAX | supported | Core SQL functions | Returns the maximum latitude (Y coordinate) of all points contained in the specified GEOGRAPHY or GEOMETRY object. |
ST_YMIN | supported | Core SQL functions | Returns the minimum latitude (Y coordinate) of all points contained in the specified GEOGRAPHY or GEOMETRY object. |
TO_GEOGRAPHY | supported | Core SQL functions | Parses an input and returns a value of type GEOGRAPHY. |
TO_GEOMETRY | partial | Core SQL functions | Parses an input and returns a value of type GEOMETRY. |
TRY_TO_GEOGRAPHY | supported | Core SQL functions | Parses an input and returns a value of type GEOGRAPHY. |
TRY_TO_GEOMETRY | supported | Core SQL functions | Parses an input and returns a value of type GEOMETRY. |
Hash functions (1)
| Function | Support | Area | Description |
|---|---|---|---|
HASH | supported | Core SQL functions | Returns a signed 64-bit hash value. Note that HASH never returns NULL, even for NULL inputs. |
IPADDRESS functions (3)
| Function | Support | Area | Description |
|---|---|---|---|
IPADDRESS_TRUNC | supported | Core SQL functions | Returns the network address of an IPADDRESS value for a given prefix length. The function keeps the leading bits of the address that the prefix length… |
TO_IPADDRESS | supported | Core SQL functions | Converts the input expression to an IPADDRESS value. |
TRY_TO_IPADDRESS | supported | Core SQL functions | A special version of TO_IPADDRESS that performs the same operation (converts an input expression to an IPADDRESS value) but with error-handling support. If the… |
Information Schema (63)
| Function | Support | Area | Description |
|---|---|---|---|
ALERT_HISTORY | supported | UDFs, procedures, tasks, alerts, scripting | This INFORMATION_SCHEMA table function can be used to query the history of alerts within a specified date range. The function returns the history of alerts for… |
APPLICATION_CALLBACK_HISTORYpreview | supported | Native apps, listings & sharing | Returns information about the history of callback invocations for Snowflake Native Apps in your Snowflake account. Each row represents a callback invocation,… |
APPLICATION_SPECIFICATION_STATUS_HISTORY | supported | Native apps, listings & sharing | Returns information about the history of the status changes for app specifications in your Snowflake account. |
AUTOMATIC_CLUSTERING_HISTORY | supported | Tables, views, streams, sequences | This table function is used for querying the Automatic Clustering history for given tables within a specified date range. The information returned by the… |
AUTO_REFRESH_REGISTRATION_HISTORY | supported | Iceberg & external tables | This table function can be used to query the history of data files registered in the metadata for a specified external table or directory table and the credits… |
AVAILABLE_LISTINGS | supported | Native apps, listings & sharing | Returns all listings that are available for the consumer to discover and access. |
AVAILABLE_LISTING_REFRESH_HISTORY | supported | Native apps, listings & sharing | Returns the past 14 days of refresh history for an available listing or a database mounted from a listing using cross-cloud auto-fulfillment. The information… |
BIND_VALUES | supported | Queries & DML | This INFORMATION_SCHEMA table function returns information about the values of bind variables used in queries. |
CODE_BUNDLE_HISTORY | supported | Container services & dev tooling | Returns the run history of Code Bundles: one row per run of EXECUTE CODE BUNDLE or EXECUTE NOTEBOOK PROJECT, including anonymous runs (EXECUTE CODE BUNDLE FROM… |
COMPLETE_TASK_GRAPHS | supported | UDFs, procedures, tasks, alerts, scripting | Returns the status of a completed graph run. The function returns details for runs that executed successfully, failed, or were cancelled in the past 60… |
COPY_HISTORY | supported | Data loading & unloading | This table function can be used to query Snowflake data loading history along various dimensions within the last 14 days. The function returns load activity… |
CORTEX_SEARCH_REFRESH_HISTORY | supported | AI & ML | This table function returns information about each refresh (completed and running) of Cortex Search services. |
CURRENT_TASK_GRAPHS | partial | UDFs, procedures, tasks, alerts, scripting | Returns the status of a graph run that is currently scheduled or is executing. A graph is currently defined as a single scheduled task or a task graph composed… |
DATABASE_REFRESH_HISTORY | supported | Replication, failover & backup | Returns the refresh history for a secondary database. |
DATABASE_REFRESH_PROGRESS | supported | Replication, failover & backup | The DATABASE_REFRESH_PROGRESS family of functions can be used to query the status of a database refresh along various dimensions: |
DATABASE_REFRESH_PROGRESS_BY_JOB | supported | Replication, failover & backup | The DATABASE_REFRESH_PROGRESS family of functions can be used to query the status of a database refresh along various dimensions: |
DATABASE_REPLICATION_USAGE_HISTORY | supported | Replication, failover & backup | This table function can be used to query the replication history for a specified database within a specified date range. The information returned by the… |
DATABASE_STORAGE_USAGE_HISTORY | supported | Databases & schemas | This table function can be used to query the average daily storage usage, in bytes, for a single database (or all the databases in your account) within a… |
DATA_METRIC_FUNCTION_EXPECTATIONSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns information about the expectations that exist in the account. |
DATA_METRIC_FUNCTION_REFERENCESEnterprise+ | supported | Governance (policies, tags, data quality) | Returns a row for each object that has the specified data metric function assigned to the object or returns a row for each data metric function assigned to the… |
DATA_TRANSFER_HISTORY | supported | Replication, failover & backup | This table function can be used to query the history of data transferred from Snowflake tables into a different cloud storage provider’s network (i.e. from… |
DBT_PROJECT_EXECUTION_HISTORY | supported | Container services & dev tooling | Returns the execution history of dbt Projects on Snowflake. |
DYNAMIC_TABLES | supported | Tables, views, streams, sequences | This table function returns metadata about dynamic tables, including aggregate lag metrics and the status of the most recent refreshes, within 7 days of the… |
DYNAMIC_TABLE_GRAPH_HISTORY | supported | Tables, views, streams, sequences | This table function returns information on all dynamic tables in the current account. This information includes the dependencies between dynamic tables and on… |
DYNAMIC_TABLE_REFRESH_HISTORY | supported | Tables, views, streams, sequences | This table function returns information about each refresh (completed and running) of dynamic tables. |
EXTERNAL_FUNCTIONS_HISTORY | supported | UDFs, procedures, tasks, alerts, scripting | This table function retrieves the history of external functions called by Snowflake for your entire Snowflake account. |
EXTERNAL_TABLE_FILES | supported | Iceberg & external tables | This table function can be used to query information about the staged data files included in the metadata for a specified external table. |
EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY | supported | Iceberg & external tables | This table function can be used to query information about the metadata history for an external table, including: |
LISTING_REFRESH_HISTORY | supported | Native apps, listings & sharing | Returns the past 14 days of refresh history for a cross-cloud auto-fulfillment listing. The information returned contains replication details for refresh… |
LOGIN_HISTORY | supported | Accounts, users, sessions, warehouses | The LOGIN_HISTORY family of table functions can be used to query login attempts by Snowflake users along various dimensions: |
LOGIN_HISTORY_BY_USER | supported | Accounts, users, sessions, warehouses | The LOGIN_HISTORY family of table functions can be used to query login attempts by Snowflake users along various dimensions: |
MATERIALIZED_VIEW_REFRESH_HISTORYEnterprise+ | supported | Tables, views, streams, sequences | This table function is used for querying the materialized views refresh history for a specified materialized view within a specified date range. The… |
NETWORK_RULE_REFERENCES | supported | Integrations, network & secrets | Returns a row for each object with which the specified network rule is associated or returns a row for each network rule associated with the specified… |
NOTIFICATION_HISTORY | supported | Integrations, network & secrets | This table function can be used to query the history of notifications sent through Snowflake. These notifications include: |
ONLINE_FEATURE_TABLE_REFRESH_HISTORY | supported | AI & ML | This table function returns information about each refresh (completed and running) of online feature tables. |
PIPE_USAGE_HISTORY | supported | Data loading & unloading | This table function can be used to query the history of data loaded into Snowflake tables using Snowpipe within a specified date range. The function returns… |
POLICY_REFERENCES | supported | Governance (policies, tags, data quality) | Returns a row for each object that has the specified policy assigned to the object or returns a row for each policy assigned to the specified object. |
QUERY_ACCELERATION_HISTORYEnterprise+ | supported | Queries & DML | The QUERY_ACCELERATION_HISTORY function is used for querying the query acceleration service history within a specified date range. The information returned… |
QUERY_HISTORY | supported | Queries & DML | You can use the QUERY_HISTORY family of table functions to query Snowflake query history along various dimensions: |
QUERY_HISTORY_BY_SESSION | supported | Queries & DML | You can use the QUERY_HISTORY family of table functions to query Snowflake query history along various dimensions: |
QUERY_HISTORY_BY_USER | supported | Queries & DML | You can use the QUERY_HISTORY family of table functions to query Snowflake query history along various dimensions: |
QUERY_HISTORY_BY_WAREHOUSE | supported | Queries & DML | You can use the QUERY_HISTORY family of table functions to query Snowflake query history along various dimensions: |
REPLICATION_GROUP_DANGLING_REFERENCESBusiness Critical+ | supported | Replication, failover & backup | Detects cases where an object that’s referenced in a replication group or failover group isn’t actually replicated to the secondary account. Snowflake refers… |
REPLICATION_GROUP_REFRESH_HISTORYBusiness Critical+ | supported | Replication, failover & backup | You can use the REPLICATION_GROUP_REFRESH_HISTORY family of table functions to query the replication history for one secondary replication or failover group,… |
REPLICATION_GROUP_REFRESH_HISTORY_ALLBusiness Critical+ | supported | Replication, failover & backup | You can use the REPLICATION_GROUP_REFRESH_HISTORY family of table functions to query the replication history for one secondary replication or failover group,… |
REPLICATION_GROUP_REFRESH_PROGRESSBusiness Critical+ | supported | Replication, failover & backup | You can use the REPLICATION_GROUP_REFRESH_PROGRESS family of table functions to query the status of refresh operations for replication or failover groups: |
REPLICATION_GROUP_REFRESH_PROGRESS_ALLBusiness Critical+ | supported | Replication, failover & backup | You can use the REPLICATION_GROUP_REFRESH_PROGRESS family of table functions to query the status of refresh operations for replication or failover groups: |
REPLICATION_GROUP_REFRESH_PROGRESS_BY_JOBBusiness Critical+ | supported | Replication, failover & backup | You can use the REPLICATION_GROUP_REFRESH_PROGRESS family of table functions to query the status of refresh operations for replication or failover groups: |
REPLICATION_GROUP_USAGE_HISTORYBusiness Critical+ | supported | Replication, failover & backup | Returns the replication usage history for secondary replication or failover groups within the last 14 days. |
REPLICATION_USAGE_HISTORYdeprecated | supported | Replication, failover & backup | This table function can be used to query the replication history for a specified database within a specified date range. The information returned by the… |
SEARCH_OPTIMIZATION_HISTORYEnterprise+ | supported | Tables, views, streams, sequences | This table function is used for querying maintenance history for indexes maintained by the search optimization service for a specified table within a specified… |
SERVERLESS_ALERT_HISTORY | supported | UDFs, procedures, tasks, alerts, scripting | This table function is used for querying the serverless alert usage history. The information returned by the function includes the alert name and credits… |
SERVERLESS_TASK_HISTORY | supported | UDFs, procedures, tasks, alerts, scripting | This table function is used for querying the serverless task usage history. The information returned by the function includes the task name and credits… |
STAGE_DIRECTORY_FILE_REGISTRATION_HISTORY | supported | Data loading & unloading | This table function can be used to query information about the metadata history for a directory table, including: |
STAGE_STORAGE_USAGE_HISTORY | supported | Data loading & unloading | This table function can be used to query the average daily data storage usage, in bytes, for all the Snowflake stages in your account within a specified date… |
TAG_REFERENCES | supported | Governance (policies, tags, data quality) | Returns a table in which each row displays an association between a tag and value. |
TAG_REFERENCES_ALL_COLUMNS | supported | Governance (policies, tags, data quality) | Returns a table in which each row displays the tag name and tag value assigned to a specific column. |
TASK_DEPENDENTS | supported | UDFs, procedures, tasks, alerts, scripting | This table function returns the list of child tasks for a given root task in a task graph. |
TASK_GRAPH_CHANGESpreview | not supported | UDFs, procedures, tasks, alerts, scripting | This table function previews the uncommitted changes for a task graph object — the difference between the live (possibly-staged) definition of the graph and… |
TASK_HISTORY | supported | UDFs, procedures, tasks, alerts, scripting | You can use this table function to query the history of task usage within a specified date range. The function returns the history of task usage for your… |
VALIDATE_PIPE_LOAD | supported | Data loading & unloading | This table function can be used to validate data files processed by Snowpipe within a specified time range. The function returns details about any errors… |
WAREHOUSE_LOAD_HISTORY | supported | Accounts, users, sessions, warehouses | This table function can be used to query the activity history (defined as the “query load”) for a single warehouse within a specified date range. |
WAREHOUSE_METERING_HISTORY | supported | Accounts, users, sessions, warehouses | This table function can be used in queries to return the hourly credit usage for a single warehouse (or all the warehouses in your account) within a specified… |
LOCAL schema (2)
| Function | Support | Area | Description |
|---|---|---|---|
DATA_QUALITY_MONITORING_EXPECTATION_STATUSEnterprise+ | supported | Governance (policies, tags, data quality) | For a specified object, returns a row for every time a data metric function (DMF) with an expectation was run. You can obtain the status of the expectation in… |
DATA_QUALITY_MONITORING_RESULTS | supported | Governance (policies, tags, data quality) | Returns a row for each data metric function assigned to the specified object, which includes the evaluation result and other metadata of the data metric… |
Metadata functions (2)
| Function | Support | Area | Description |
|---|---|---|---|
GENERATE_COLUMN_DESCRIPTION | supported | Data loading & unloading | Generates a list of columns from a set of staged files that contain semi-structured data using the INFER_SCHEMA function output. |
GET_DDL | supported | Databases & schemas | Returns a DDL statement that can be used to recreate the specified object. For databases and schemas, GET_DDL is recursive (that is, it returns the DDL… |
Model monitor functions (3)
| Function | Support | Area | Description |
|---|---|---|---|
MODEL_MONITOR_DRIFT_METRIC | supported | AI & ML | Gets drift metrics from a model monitor. Each model monitor monitors one machine learning model. See ML Observability for model version monitors and Gateway… |
MODEL_MONITOR_PERFORMANCE_METRIC | supported | AI & ML | Gets performance metrics from a model monitor. Each model monitor monitors one machine learning model. See ML Observability for model version monitors and… |
MODEL_MONITOR_STAT_METRIC | partial | AI & ML | Gets stat metrics from a model monitor. Each model monitor monitors one machine learning model. See ML Observability for model version monitors and Gateway… |
Notification functions (6)
| Function | Support | Area | Description |
|---|---|---|---|
APPLICATION_JSON | supported | Integrations, network & secrets | Returns a JSON object that specifies the JSON message to use for a notification. This is a helper function that you use to construct a message object for the… |
EMAIL_INTEGRATION_CONFIG | supported | Integrations, network & secrets | Returns a JSON object that specifies the email notification integration, recipients, and subject line to use for an email notification. This is a helper… |
INTEGRATION | supported | Integrations, network & secrets | Returns a JSON object that specifies the notification integration to use to send a message. This is a helper function that you use to construct an integration… |
SANITIZE_WEBHOOK_CONTENT | supported | Integrations, network & secrets | Removes placeholders (for example, the SNOWFLAKE_WEBHOOK_SECRET placeholder, which specifies a secret) from the body of a notification message to be sent. |
TEXT_HTML | supported | Integrations, network & secrets | Returns a JSON object that specifies the HTML message to use for a notification. This is a helper function that you use to construct a message object for the… |
TEXT_PLAIN | supported | Integrations, network & secrets | Returns a JSON object that specifies the plain text message to use for a notification. This is a helper function that you use to construct a message object for… |
Numeric functions (37)
| Function | Support | Area | Description |
|---|---|---|---|
ABS | supported | Core SQL functions | Returns the absolute value of a numeric expression. |
ACOS | supported | Core SQL functions | Computes the inverse cosine (arc cosine) of its input; the result is a number in the interval [0, pi]. |
ACOSH | supported | Core SQL functions | Computes the inverse (arc) hyperbolic cosine of its input. |
ASIN | supported | Core SQL functions | Computes the inverse sine (arc sine) of its argument; the result is a number in the interval [-pi/2, pi/2]. |
ASINH | supported | Core SQL functions | Computes the inverse (arc) hyperbolic sine of its argument. |
ATAN | supported | Core SQL functions | Computes the inverse tangent (arc tangent) of its argument; the result is a number in the interval [-pi, pi]. |
ATAN2 | supported | Core SQL functions | Computes the inverse tangent (arc tangent) of the ratio of its two arguments. For example, if x > 0, then the expression ATAN2(y, x) is equivalent to ATAN(y/x). |
ATANH | supported | Core SQL functions | Computes the inverse (arc) hyperbolic tangent of its argument. |
CBRT | supported | Core SQL functions | Returns the cubic root of a numeric expression. |
CEIL | supported | Core SQL functions | Returns values from input_expr rounded to the nearest equal or larger integer, or to the nearest equal or larger value with the specified number of places… |
COS | supported | Core SQL functions | Computes the cosine of its argument; the argument should be expressed in radians. |
COSH | supported | Core SQL functions | Computes the hyperbolic cosine of its argument. |
COT | supported | Core SQL functions | Computes the cotangent of its argument; the argument should be expressed in radians. |
DEGREES | supported | Core SQL functions | Converts radians to degrees. |
DIV0 | supported | Core SQL functions | Performs division like the division operator (/), but returns 0 when the divisor is 0 (rather than reporting an error). |
DIV0NULL | supported | Core SQL functions | Performs division like the division operator (/), but returns 0 when the divisor is 0 or NULL (rather than reporting an error or returning NULL). |
EXP | supported | Core SQL functions | Computes Euler’s number e raised to a floating-point value. |
FACTORIAL | supported | Core SQL functions | Computes the factorial of its input. The input argument must be an integer expression in the range of 0 to 33. |
FLOOR | supported | Core SQL functions | Returns values from input_expr rounded to the nearest equal or smaller integer, or to the nearest equal or smaller value with the specified number of places… |
LN | supported | Core SQL functions | Returns the natural logarithm of a numeric expression. |
LOG | supported | Core SQL functions | Returns the logarithm of a numeric expression. |
MOD | supported | Core SQL functions | Returns the remainder of input expr1 divided by input expr2. |
PI | supported | Core SQL functions | Returns the value of pi as a floating-point value. |
POW | supported | Core SQL functions | Returns a number (x) raised to the specified power (y). |
POWER | supported | Core SQL functions | Returns a number (x) raised to the specified power (y). |
RADIANS | supported | Core SQL functions | Converts degrees to radians. |
ROUND | supported | Core SQL functions | Returns rounded values for input_expr. |
SIGN | supported | Core SQL functions | Returns the sign of its argument: |
SIN | supported | Core SQL functions | Computes the sine of its argument; the argument should be expressed in radians. |
SINH | supported | Core SQL functions | Computes the hyperbolic sine of its argument. |
SQRT | supported | Core SQL functions | Returns the square-root of a non-negative numeric expression. |
SQUARE | supported | Core SQL functions | Returns the square of a numeric expression (i.e. a numeric expression multiplied by itself). |
TAN | supported | Core SQL functions | Computes the tangent of its argument; the argument should be expressed in radians. |
TANH | supported | Core SQL functions | Computes the hyperbolic tangent of its argument. |
TRUNC | supported | Core SQL functions | Rounds the input expression down to the nearest (or equal) value closer to zero. Depending on the value you specify as the scale parameter, the transformation… |
TRUNCATE | supported | Core SQL functions | Rounds the input expression down to the nearest (or equal) value closer to zero. Depending on the value you specify as the scale parameter, the transformation… |
WIDTH_BUCKET | supported | Core SQL functions | Constructs equi-width histograms, in which the histogram range is divided into intervals of identical size, and returns the bucket number into which the value… |
Organization user and organization user group functions (2)
| Function | Support | Area | Description |
|---|---|---|---|
IS_ORGANIZATION_USER | supported | Accounts, users, sessions, warehouses | Returns TRUE if the argument is a Snowflake user who is an organization user. |
IS_ORGANIZATION_USER_GROUP | supported | Accounts, users, sessions, warehouses | Returns TRUE if the specified role was created when an administrator added an organization user group to the account. |
Period functions (14)
| Function | Support | Area | Description |
|---|---|---|---|
PERIOD_BEGIN | supported | Core SQL functions | Returns the inclusive beginning bound of a PERIOD value. |
PERIOD_CONSTRUCT | supported | Core SQL functions | Constructs a PERIOD value from a beginning bound and an ending bound of the same temporal element type. |
PERIOD_CONTAINS | supported | Core SQL functions | Returns TRUE if a PERIOD contains another PERIOD, or contains a temporal instant of the same element type. |
PERIOD_END | supported | Core SQL functions | Returns the exclusive ending bound of a PERIOD value. |
PERIOD_EQUALS | supported | Core SQL functions | Returns TRUE if two PERIOD values have the same beginning and ending bounds. |
PERIOD_IMMEDIATELY_PRECEDES | supported | Core SQL functions | Returns TRUE if the first PERIOD ends exactly where the second PERIOD begins. |
PERIOD_IMMEDIATELY_SUCCEEDS | supported | Core SQL functions | Returns TRUE if the first PERIOD begins exactly where the second PERIOD ends. |
PERIOD_INTERSECT | supported | Core SQL functions | Returns the overlapping sub-range of two PERIOD values, or NULL if the periods are disjoint. |
PERIOD_LDIFF | supported | Core SQL functions | Returns the portion of the first PERIOD that lies before the second PERIOD begins, or NULL when there is no such remainder. |
PERIOD_MEETS | supported | Core SQL functions | Returns TRUE if two PERIOD values are adjacent in either order. |
PERIOD_OVERLAPS | supported | Core SQL functions | Returns TRUE if two PERIOD values share any instant. |
PERIOD_PRECEDES | supported | Core SQL functions | Returns TRUE if the first PERIOD ends at or before the second PERIOD begins. |
PERIOD_RDIFF | supported | Core SQL functions | Returns the portion of the first PERIOD that lies after the second PERIOD ends, or NULL when there is no such remainder. |
PERIOD_SUCCEEDS | supported | Core SQL functions | Returns TRUE if the first PERIOD begins at or after the second PERIOD ends. |
Semi-structured and structured data functions (102)
| Function | Support | Area | Description |
|---|---|---|---|
ARRAYS_OVERLAP | supported | Core SQL functions | Compares whether two arrays have at least one element in common. Returns TRUE if there is at least one element in common; otherwise returns FALSE. The function… |
ARRAYS_TO_OBJECT | supported | Core SQL functions | Returns an OBJECT that contains the keys specified by one input ARRAY and the values specified by another input ARRAY. |
ARRAYS_ZIP | supported | Core SQL functions | Returns an array of objects, each of which contains key-value pairs for an nth element in the input arrays. For example, in the returned array, the first… |
ARRAY_AGG | supported | Core SQL functions | Returns the input values, pivoted into an array. If the input is empty, the function returns an empty array. |
ARRAY_APPEND | supported | Core SQL functions | Returns an array containing all elements from the source array as well as the new element. The new element is located at the end of the array. |
ARRAY_CAT | supported | Core SQL functions | Returns a concatenation of two arrays. |
ARRAY_COMPACT | supported | Core SQL functions | Returns a compacted array with missing and null values removed, effectively converting sparse arrays into dense arrays. |
ARRAY_CONSTRUCT | supported | Core SQL functions | Returns an array constructed from zero, one, or more inputs. |
ARRAY_CONSTRUCT_COMPACT | supported | Core SQL functions | Returns an array constructed from zero, one, or more inputs; the constructed array omits any NULL input values. |
ARRAY_CONSTRUCT_STRUCTURED | supported | Core SQL functions | Returns a structured ARRAY constructed from one or more inputs, where the element type is the common type of the inputs. |
ARRAY_CONTAINS | supported | Core SQL functions | Returns TRUE if the specified value is found in the specified array. |
ARRAY_DISTINCT | supported | Core SQL functions | Returns a new ARRAY that contains only the distinct elements from the input ARRAY. The function excludes any duplicate elements that are present in the input… |
ARRAY_EXCEPT | supported | Core SQL functions | Returns a new ARRAY that contains the elements from one input ARRAY that are not in another input ARRAY. |
ARRAY_FLATTEN | supported | Core SQL functions | Flattens an ARRAY of ARRAYs into a single ARRAY. The function effectively concatenates the ARRAYs that are elements of the input ARRAY and returns them as a… |
ARRAY_GENERATE_RANGE | supported | Core SQL functions | Returns an ARRAY of integer values within a specified range (e.g. [2, 3, 4]). |
ARRAY_INSERT | supported | Core SQL functions | Returns an array containing all elements from the source array as well as the new element. |
ARRAY_INTERSECTION | supported | Core SQL functions | Returns an array that contains the matching elements in the two input arrays. |
ARRAY_MAX | supported | Core SQL functions | Given an input ARRAY, returns the element with the highest value that is not a SQL NULL. If the input ARRAY is empty or contains only SQL NULL elements, this… |
ARRAY_MIN | supported | Core SQL functions | Given an input ARRAY, returns the element with the lowest value that is not a SQL NULL. If the input ARRAY is empty or contains only SQL NULL elements, this… |
ARRAY_POSITION | supported | Core SQL functions | Returns the index of the first occurrence of an element in an array. |
ARRAY_PREPEND | supported | Core SQL functions | Returns an array containing the new element as well as all elements from the source array. The new element is positioned at the beginning of the array. |
ARRAY_REMOVE | supported | Core SQL functions | Given a source ARRAY, returns an ARRAY with elements of the specified value removed. |
ARRAY_REMOVE_AT | supported | Core SQL functions | Given a source ARRAY, returns an ARRAY with the element at the specified position removed. |
ARRAY_REPEAT | supported | Core SQL functions | Returns an ARRAY value containing a specified number of copies of an element. |
ARRAY_REVERSE | supported | Core SQL functions | Returns an array with the elements of the input array in reverse order. |
ARRAY_SIZE | supported | Core SQL functions | Returns the size of the input array. |
ARRAY_SLICE | supported | Core SQL functions | Returns an array constructed from a specified subset of elements of the input array. |
ARRAY_SORT | supported | Core SQL functions | Returns an ARRAY that contains the elements of the input ARRAY sorted in ascending or descending order. You can specify whether or not NULL elements are sorted… |
ARRAY_SUM | supported | Core SQL functions | Aggregates a column of structured ARRAY values by summing them element by element. The value at each position in the result is the sum of the values at that… |
ARRAY_TO_STRING | supported | Core SQL functions | Returns an input array converted to a string by casting all values to strings (using TO_VARCHAR) and concatenating them (using the string from the second… |
AS_ARRAY | supported | Core SQL functions | You can use this family of functions to perform strict casting of VARIANT values to values of other data types: |
AS_BINARY | supported | Core SQL functions | You can use this family of functions to perform strict casting of VARIANT values to values of other data types: |
AS_BOOLEAN | supported | Core SQL functions | You can use this family of functions to perform strict casting of VARIANT values to values of other data types: |
AS_CHAR | supported | Core SQL functions | Casts a VARIANT value to a VARCHAR value. This function only converts CHAR and VARCHAR values. |
AS_DATE | supported | Core SQL functions | You can use this family of functions to perform strict casting of VARIANT values to values of other data types: |
AS_DECIMAL | supported | Core SQL functions | Casts a VARIANT value to a fixed-point NUMBER value, with optional precision and scale. This function doesn’t cast floating-point values. |
AS_DOUBLE | supported | Core SQL functions | Casts a VARIANT value to a floating-point value. |
AS_INTEGER | supported | Core SQL functions | You can use this family of functions to perform strict casting of VARIANT values to values of other data types: |
AS_NUMBER | supported | Core SQL functions | Casts a VARIANT value to a fixed-point NUMBER value, with optional precision and scale. This function doesn’t cast floating-point values. |
AS_OBJECT | supported | Core SQL functions | You can use this family of functions to perform strict casting of VARIANT values to values of other data types: |
AS_REAL | supported | Core SQL functions | Casts a VARIANT value to a floating-point value. |
AS_TIME | supported | Core SQL functions | You can use this family of functions to perform strict casting of VARIANT values to values of other data types: |
AS_TIMESTAMP_LTZ | supported | Core SQL functions | Casts a VARIANT value to the respective timestamp value: |
AS_TIMESTAMP_NTZ | supported | Core SQL functions | Casts a VARIANT value to the respective timestamp value: |
AS_TIMESTAMP_TZ | supported | Core SQL functions | Casts a VARIANT value to the respective timestamp value: |
AS_VARCHAR | supported | Core SQL functions | Casts a VARIANT value to a VARCHAR value. This function only converts CHAR and VARCHAR values. |
CHECK_JSON | supported | Core SQL functions | Checks the validity of a JSON document. If the input string is a valid JSON document or a NULL, the output is NULL (i.e. no error). If the input cannot be… |
CHECK_XML | supported | Core SQL functions | Checks the validity of an XML document. If the input string is NULL or a valid XML document, the output is NULL. In case of an XML parsing error, the output… |
FILTER | supported | Core SQL functions | Filters an array based on the logic in a lambda expression. |
FLATTEN | supported | Core SQL functions | Flattens (explodes) compound values into multiple rows. |
GET | supported | Core SQL functions | Extracts a value from an ARRAY or an OBJECT (or a VARIANT that contains an ARRAY or OBJECT). |
GET_IGNORE_CASE | supported | Core SQL functions | Extracts a field value from an object; returns NULL if either of the arguments is NULL. |
GET_PATH | supported | Core SQL functions | Extracts a value from semi-structured data using a path name. |
IS_ARRAY | supported | Core SQL functions | This family of functions serves as Boolean predicates that can be used to determine the data type of a value stored in a VARIANT column: |
IS_BINARY | supported | Core SQL functions | This family of functions serves as Boolean predicates that can be used to determine the data type of a value stored in a VARIANT column: |
IS_BOOLEAN | supported | Core SQL functions | This family of functions serves as Boolean predicates that can be used to determine the data type of a value stored in a VARIANT column: |
IS_CHAR | supported | Core SQL functions | Returns TRUE if its VARIANT argument contains a string value. |
IS_DATE | supported | Core SQL functions | Returns TRUE if its VARIANT argument contains a DATE value. |
IS_DATE_VALUE | supported | Core SQL functions | Returns TRUE if its VARIANT argument contains a DATE value. |
IS_DECIMAL | supported | Core SQL functions | This family of functions serves as Boolean predicates that can be used to determine the data type of a value stored in a VARIANT column: |
IS_DOUBLE | supported | Core SQL functions | Returns TRUE if its VARIANT argument contains a floating-point number, fixed-point number, or integer value. |
IS_INTEGER | supported | Core SQL functions | This family of functions serves as Boolean predicates that can be used to determine the data type of a value stored in a VARIANT column: |
IS_NULL_VALUE | supported | Core SQL functions | This family of functions serves as Boolean predicates that can be used to determine the data type of a value stored in a VARIANT column: |
IS_OBJECT | supported | Core SQL functions | This family of functions serves as Boolean predicates that can be used to determine the data type of a value stored in a VARIANT column: |
IS_REAL | supported | Core SQL functions | Returns TRUE if its VARIANT argument contains a floating-point number, fixed-point number, or integer value. |
IS_TIME | supported | Core SQL functions | This family of functions serves as Boolean predicates that can be used to determine the data type of a value stored in a VARIANT column: |
IS_TIMESTAMP_LTZ | supported | Core SQL functions | Verifies whether a VARIANT argument contains the respective timestamp value: |
IS_TIMESTAMP_NTZ | supported | Core SQL functions | Verifies whether a VARIANT argument contains the respective timestamp value: |
IS_TIMESTAMP_TZ | supported | Core SQL functions | Verifies whether a VARIANT argument contains the respective timestamp value: |
IS_VARCHAR | supported | Core SQL functions | Returns TRUE if its VARIANT argument contains a string value. |
JSON_EXTRACT_PATH_TEXT | supported | Core SQL functions | Parses the first argument as a JSON string and returns the value of the element pointed to by the path in the second argument. This is equivalent to… |
MAP_CAT | supported | Core SQL functions | Returns the concatenation of two MAP values. |
MAP_CONSTRUCT | supported | Core SQL functions | Returns a MAP constructed from a series of alternating keys and values. |
MAP_CONTAINS_KEY | supported | Core SQL functions | Determines whether the specified MAP contains the specified key. |
MAP_DELETE | supported | Core SQL functions | Returns a MAP based on an existing MAP with one or more keys removed. |
MAP_ENTRIES | supported | Core SQL functions | Returns an ARRAY value of key-value pair objects for each entry in a MAP value. |
MAP_INSERT | supported | Core SQL functions | Returns a new MAP consisting of the input MAP with a new key-value pair inserted. That is, an existing key is updated with a new value. |
MAP_KEYS | supported | Core SQL functions | Returns the keys in a MAP. |
MAP_PICK | supported | Core SQL functions | Returns a new MAP containing the specified key-value pairs from an existing MAP. |
MAP_SIZE | supported | Core SQL functions | Returns the size of a MAP. |
OBJECT_AGG | supported | Core SQL functions | Returns one OBJECT per group. For each (key, value) input pair, where key must be a VARCHAR and value must be a VARIANT, the resulting OBJECT contains a… |
OBJECT_CONSTRUCT | supported | Core SQL functions | Returns an OBJECT constructed from the arguments. |
OBJECT_CONSTRUCT_KEEP_NULL | supported | Core SQL functions | Returns an OBJECT constructed from the arguments that retains key-value pairs with NULL values. |
OBJECT_CONSTRUCT_KEEP_NULL_STRUCTURED | supported | Core SQL functions | Returns a structured OBJECT constructed from the arguments that retains key-value pairs with NULL values. |
OBJECT_DELETE | supported | Core SQL functions | Returns an object containing the contents of the input (that is, source) object with one or more keys removed. |
OBJECT_INSERT | supported | Core SQL functions | Returns an OBJECT value consisting of the input OBJECT value with a new key-value pair inserted (or an existing key updated with a new value). |
OBJECT_KEYS | supported | Core SQL functions | Returns an array containing the list of keys in the top-most level of the input object. |
OBJECT_PICK | supported | Core SQL functions | Returns a new OBJECT containing some of the key-value pairs from an existing object. |
PARSE_JSON | supported | Core SQL functions | Interprets an input string as a JSON document, producing a VARIANT value. |
PARSE_XML | supported | Core SQL functions | Interprets an input string as an XML document, producing an OBJECT value. If the input is NULL, the output is NULL. |
PROMPTpreview | not supported | AI & ML | The PROMPT function constructs a structured OBJECT containing a template string and a list of arguments. This object is useful for dynamically formatting… |
REDUCE | supported | Core SQL functions | Reduces an array to a single value based on the logic in a lambda expression. |
STRIP_NULL_VALUE | supported | Core SQL functions | Converts a JSON null value to a SQL NULL value. All other variant values are passed unchanged. |
STRTOK_TO_ARRAY | supported | Core SQL functions | Tokenizes the given string using the given set of delimiters and returns the tokens as an ARRAY value. |
TO_ARRAY | supported | Core SQL functions | Converts the input expression to an ARRAY value. |
TO_JSON | supported | Core SQL functions | Converts a VARIANT value to a string containing the JSON representation of the value. |
TO_OBJECT | supported | Core SQL functions | Converts the input value to an OBJECT: |
TO_XML | supported | Core SQL functions | Converts a VARIANT to a VARCHAR that contains an XML representation of the value. If the input is NULL, the result is also NULL. |
TRANSFORM | supported | Core SQL functions | Transforms an array based on the logic in a lambda expression. |
TRY_PARSE_JSON | supported | Core SQL functions | A special version of PARSE_JSON that returns a NULL value if an error occurs during parsing. |
TYPEOF | supported | Core SQL functions | Returns the type of a value stored in a VARIANT column. |
XMLGET | supported | Core SQL functions | Extracts an XML element object (often referred to as simply a tag) from the content of the outer XML element based on the name and instance number of the… |
String & binary functions (109)
| Function | Support | Area | Description |
|---|---|---|---|
AGENT_RUN | deferred | AI & ML | Runs a Cortex Agent without an agent object and returns the response as JSON. |
AI_AGG | deferred | AI & ML | Reduces a column of text data using a natural language instruction. |
AI_CLASSIFY | deferred | AI & ML | Classifies text, images, or documents into categories that you specify. |
AI_COMPLETEpreview | deferred | AI & ML | Generates a response (completion) from text, images, documents, audio, or video using a supported language model. The input types you can use depend on the… |
AI_COUNT_TOKENS | deferred | AI & ML | Returns an estimate of the number of input tokens in a prompt for the specified large language model or task-specific function. For functions that can take… |
AI_EMBED | deferred | AI & ML | Creates an embedding vector from text or an image. Embeddings are abstract numerical representations of the features of a piece of text or an image that can be… |
AI_EXTRACT | deferred | AI & ML | Extracts information from an input string or file. |
AI_FILTER | deferred | AI & ML | Classifies free-form prompt inputs into a boolean. Currently supports both text and image filtering. |
AI_FUNCTION_EVALUATION | deferred | AI & ML | AI_FUNCTION_EVALUATION measures the output quality of an AI function or Cortex AI call against a labeled dataset. You specify the expression to evaluate, a… |
AI_FUNCTION_OPTIMIZATION | deferred | AI & ML | AI_FUNCTION_OPTIMIZATION searches for improved implementations of an AI function using a labeled dataset and a scoring metric. You specify the AI function to… |
AI_MULTI_EMBED | deferred | AI & ML | Creates multimodal embeddings from text, an image, an audio file, or a video file. Embeddings are abstract numerical representations of the features of an… |
AI_PARSE_DOCUMENT | deferred | AI & ML | Returns document content from a Snowflake stage as a JSON-formatted string. Supports text extraction (OCR), text and layout extraction (LAYOUT), and text,… |
AI_REDACT | deferred | AI & ML | Personally identifiable information (PII) includes names, addresses, phone numbers, email addresses, tax identification numbers, and other data that can be… |
AI_SENTIMENT | deferred | AI & ML | AI_SENTIMENT provides sentiment classification across diverse markets and languages. It uses a custom Snowflake large language model to return overall… |
AI_SIMILARITY | deferred | AI & ML | Computes a similarity score based on the vector cosine similarity value of the inputs’ embedding vectors. Currently supports both text and image similarity… |
AI_SUMMARIZEpreview | deferred | AI & ML | AI_SUMMARIZE is a managed Cortex AI function for summarizing text and multimodal content. It accepts either a TEXT input or a FILE reference to an image or… |
AI_SUMMARIZE_AGG | deferred | AI & ML | Summarizes a column of text data. |
AI_TRANSLATE | deferred | AI & ML | Translates the given input text from one supported language to another. |
ASCII | supported | Core SQL functions | Returns the ASCII code for the first character of a string. If the string is empty, a value of 0 is returned. |
BASE64_DECODE_BINARY | supported | Core SQL functions | Decodes a Base64-encoded string to a binary. |
BASE64_DECODE_STRING | supported | Core SQL functions | Decodes a Base64-encoded string to a string. |
BASE64_ENCODE | supported | Core SQL functions | Encodes the input (string or binary) using Base64 encoding. |
BIT_LENGTH | supported | Core SQL functions | Returns the length of a string or binary value in bits. |
CHAR | supported | Core SQL functions | Converts a Unicode code point (including 7-bit ASCII) into the character that matches the input Unicode. If an invalid code point is specified, an error is… |
CHARINDEX | supported | Core SQL functions | Searches for the first occurrence of the first argument in the second argument and, if successful, returns the position (1-based) of the first argument in the… |
CHR | supported | Core SQL functions | Converts a Unicode code point (including 7-bit ASCII) into the character that matches the input Unicode. If an invalid code point is specified, an error is… |
CLASSIFY_TEXT | deferred | AI & ML | Notice |
COLLATE | supported | Core SQL functions | Returns a copy of the original string, but with the specified collation_specification property instead of the original collation_specification property. |
COLLATION | supported | Core SQL functions | Returns the collation specification of the expression. |
COMPLETE | deferred | AI & ML | Notice |
COMPRESS | supported | Core SQL functions | Compresses the input string or binary value with a compression method. |
CONCAT | supported | Core SQL functions | Concatenates one or more strings, or concatenates one or more binary values. |
CONCAT_WS | supported | Core SQL functions | Concatenates two or more strings, or concatenates two or more binary values, and uses the first argument as a delimiter between the following strings. |
CONTAINS | supported | Core SQL functions | Returns true if expr1 contains expr2. Both expressions must be text or binary expressions. |
COUNT_TOKENS | deferred | AI & ML | Notice |
DATA_AGENT_RUN | deferred | AI & ML | Runs a Cortex Agent and returns the response as JSON. |
DECOMPRESS_BINARY | supported | Core SQL functions | Decompresses the compressed BINARY input parameter. |
DECOMPRESS_STRING | supported | Core SQL functions | Decompresses the compressed BINARY input parameter to a string. |
EDITDISTANCE | supported | Core SQL functions | Computes the Levenshtein distance between two input strings. It is the number of single-character insertions, deletions, or substitutions needed to convert one… |
EMBED_TEXT_1024 | deferred | AI & ML | Notice |
EMBED_TEXT_768 | deferred | AI & ML | Notice |
ENDSWITH | supported | Core SQL functions | Returns TRUE if the first expression ends with the second expression. Both expressions must be text or binary expressions. |
ENTITY_SENTIMENTpreview | deferred | AI & ML | Notice |
EXTRACT_ANSWER | deferred | AI & ML | Notice |
FINETUNE | deferred | AI & ML | Cancels the specified fine-tuning job from the current schema. |
FORMAT_STRING_TEMPLATE | supported | Core SQL functions | Formats a string by substituting placeholders with values, providing type-aware string interpolation. |
HEX_DECODE_BINARY | supported | Core SQL functions | Decodes a hex-encoded string to a binary. |
HEX_DECODE_STRING | supported | Core SQL functions | Decodes a hex-encoded string to a string. |
HEX_ENCODE | supported | Core SQL functions | Encodes the input using hexadecimal (also ‘hex’ or ‘base16’) encoding. The result is comprised of 16 different symbols: The numbers ’0’ to ’9’ as well as the… |
INITCAP | supported | Core SQL functions | Returns the input string with the first letter of each word in uppercase and the subsequent letters in lowercase. |
INSERT | supported | Core SQL functions | Replaces a substring of the specified length, starting at the specified position, with a new string or binary value. |
JAROWINKLER_SIMILARITY | supported | Core SQL functions | Computes the Jaro-Winkler similarity between two input strings. The function returns an integer between 0 and 100, where 0 indicates no similarity and 100… |
LEFT | supported | Core SQL functions | Returns a leftmost substring of its input. |
LEN | supported | Core SQL functions | Returns the length of an input string or binary value. For strings, the length is the number of characters, and UTF-8 characters are counted as a single… |
LENGTH | supported | Core SQL functions | Returns the length of an input string or binary value. For strings, the length is the number of characters, and UTF-8 characters are counted as a single… |
LOWER | supported | Core SQL functions | Returns the input string with all characters converted to lowercase. |
LPAD | supported | Core SQL functions | Left-pads a string with characters from another string, or left-pads a binary value with bytes from another binary value. |
LTRIM | supported | Core SQL functions | Removes leading characters, including whitespace, from a string. |
MD5 | supported | Core SQL functions | Returns a 32-character hex-encoded string containing the 128-bit MD5 message digest. |
MD5_BINARY | supported | Core SQL functions | Returns a 16-byte BINARY value containing the 128-bit MD5 message digest. |
MD5_HEX | supported | Core SQL functions | Returns a 32-character hex-encoded string containing the 128-bit MD5 message digest. |
MD5_NUMBER_LOWER64 | supported | Core SQL functions | Calculates the 128-bit MD5 message digest, interprets it as a signed 128-bit big endian number, and returns the lower 64 bits of the number as an unsigned… |
MD5_NUMBER_UPPER64 | supported | Core SQL functions | Calculates the 128-bit MD5 message digest, interprets it as a signed 128-bit big endian number, and returns the upper 64 bits of the number as an unsigned… |
OCTET_LENGTH | supported | Core SQL functions | Returns the length of a string or binary value in bytes. This will be the same as LENGTH for ASCII strings and greater than LENGTH for strings using Unicode… |
PARSE_IP | supported | Core SQL functions | Returns a JSON object consisting of all the components from a valid INET (Internet Protocol) or CIDR (Classless Internet Domain Routing) IPv4 or IPv6 string. |
PARSE_URL | supported | Core SQL functions | Returns an OBJECT value that consists of all the components (fragment, host, parameters, path, port, query, scheme) in a valid input URL/URI. |
POSITION | supported | Core SQL functions | Searches for the first occurrence of the first argument in the second argument and, if successful, returns the position (1-based) of the first argument in the… |
REPEAT | supported | Core SQL functions | Builds a string by repeating the input for the specified number of times. |
REPLACE | supported | Core SQL functions | Removes all occurrences of a specified substring, and optionally replaces them with another substring. |
REVERSE | supported | Core SQL functions | Reverses the order of characters in a string, or of bytes in a binary value. |
RIGHT | supported | Core SQL functions | Returns a rightmost substring of its input. |
RPAD | supported | Core SQL functions | Right-pads a string with characters from another string, or right-pads a binary value with bytes from another binary value. |
RTRIM | supported | Core SQL functions | Removes trailing characters, including whitespace, from a string. |
RTRIMMED_LENGTH | supported | Core SQL functions | Returns the length of its argument, minus trailing whitespace, but including leading whitespace. |
SEARCH | supported | Core SQL functions | Searches character data (text) in specified columns from one or more tables, including fields in VARIANT, OBJECT, and ARRAY columns. A text analyzer breaks the… |
SEARCH_IP | supported | Core SQL functions | Searches for valid IPv4 and IPv6 addresses in specified character-string columns from one or more tables, including fields in VARIANT, OBJECT, and ARRAY… |
SEARCH_PREVIEW | supported | AI & ML | Given a Cortex Search service name, and a query, returns a response from the specified service. |
SENTIMENT | deferred | AI & ML | Returns an overall sentiment score for the given English-language input text. |
SHA1 | supported | Core SQL functions | Returns a 40-character hex-encoded string containing the 160-bit SHA-1 message digest. |
SHA1_BINARY | supported | Core SQL functions | Returns a 20-byte binary containing the 160-bit SHA-1 message digest. |
SHA1_HEX | supported | Core SQL functions | Returns a 40-character hex-encoded string containing the 160-bit SHA-1 message digest. |
SHA2 | supported | Core SQL functions | Returns a hex-encoded string containing the N-bit SHA-2 message digest, where N is the specified output digest size. |
SHA2_BINARY | supported | Core SQL functions | Returns a binary containing the N-bit SHA-2 message digest, where N is the specified output digest size. |
SHA2_HEX | supported | Core SQL functions | Returns a hex-encoded string containing the N-bit SHA-2 message digest, where N is the specified output digest size. |
SOUNDEX | supported | Core SQL functions | Returns a string that contains a phonetic representation of the input string. |
SOUNDEX_P123 | supported | Core SQL functions | Returns a string that contains a phonetic representation of the input string, and retains the Soundex code number for the second letter when the first and… |
SPACE | supported | Core SQL functions | Builds a string consisting of the specified number of blank spaces. |
SPLIT | supported | Core SQL functions | Splits a given string with a given separator and returns the result in an array of strings. |
SPLIT_PART | supported | Core SQL functions | Splits a given string at a specified character and returns the requested part. |
SPLIT_TEXT_MARKDOWN_HEADER | supported | AI & ML | The SPLIT_TEXT_MARKDOWN_HEADER function splits a Markdown-formatted document into structured text chunks based on header levels. The function returns an array… |
SPLIT_TEXT_RECURSIVE_CHARACTER | supported | AI & ML | The SPLIT_TEXT_RECURSIVE_CHARACTER function splits a string into shorter stings, recursively, for preprocessing text to be used with text embedding or search… |
SPLIT_TO_TABLE | supported | Core SQL functions | This table function splits a string (based on a specified delimiter) and flattens the results into rows. |
STARTSWITH | supported | Core SQL functions | Returns true if expr1 starts with expr2. Both expressions must be text or binary expressions. |
STRTOK | supported | Core SQL functions | Tokenizes a given string and returns the requested part. |
STRTOK_SPLIT_TO_TABLE | supported | Core SQL functions | Tokenizes a string with the given set of delimiters and flattens the results into rows. |
STRTOK_TO_ARRAY | supported | Core SQL functions | Tokenizes the given string using the given set of delimiters and returns the tokens as an ARRAY value. |
SUBSTR | supported | Core SQL functions | Returns the portion of the string or binary value from base_expr, starting from the character/byte specified by start_expr, with optionally limited length. |
SUBSTRING | supported | Core SQL functions | Returns the portion of the string or binary value from base_expr, starting from the character/byte specified by start_expr, with optionally limited length. |
THREAD_MESSAGES | deferred | AI & ML | Returns the messages in a Cortex Agent thread as JSON. |
TRANSLATE | supported | Core SQL functions | Replaces characters in a string. Specifically, given a string, a set of characters to replace, and the characters to substitute for the original characters,… |
TRIM | supported | Core SQL functions | Removes leading and trailing characters from a string. |
TRY_BASE64_DECODE_BINARY | supported | Core SQL functions | A special version of BASE64_DECODE_BINARY that returns a NULL value if an error occurs during decoding. |
TRY_BASE64_DECODE_STRING | supported | Core SQL functions | A special version of BASE64_DECODE_STRING that returns a NULL value if an error occurs during decoding. |
TRY_COMPLETE | deferred | AI & ML | Notice |
TRY_HEX_DECODE_BINARY | supported | Core SQL functions | A special version of HEX_DECODE_BINARY that returns a NULL value if an error occurs during decoding. |
TRY_HEX_DECODE_STRING | supported | Core SQL functions | A special version of HEX_DECODE_STRING that returns a NULL value if an error occurs during decoding. |
UNICODE | supported | Core SQL functions | Returns the Unicode code point for the first Unicode character in a string. If the string is empty, a value of 0 is returned. |
UPPER | supported | Core SQL functions | Returns the input string with all characters converted to uppercase. |
UUID_STRING | supported | Core SQL functions | Generates either a version 4 (random) or version 5 (named) RFC 4122-compliant universally unique identifier (UUID) as a formatted string. |
String functions (regular expressions) (8)
| Function | Support | Area | Description |
|---|---|---|---|
REGEXP | supported | Core SQL functions | Performs a comparison to determine whether a string matches or does not match a specified pattern. Both inputs must be text expressions. |
REGEXP_COUNT | supported | Core SQL functions | Returns the number of times that a pattern occurs in a string. |
REGEXP_INSTR | supported | Core SQL functions | Returns the position of the specified occurrence of the regular expression pattern in the string subject. |
REGEXP_LIKE | supported | Core SQL functions | Performs a comparison to determine whether a string matches a specified pattern. Both inputs must be text expressions. |
REGEXP_REPLACE | supported | Core SQL functions | Returns the subject with the specified pattern — or all occurrences of the pattern — either removed or replaced by a replacement string. |
REGEXP_SUBSTR | supported | Core SQL functions | Returns the substring that matches a regular expression within a string. |
REGEXP_SUBSTR_ALL | supported | Core SQL functions | Returns an ARRAY that contains all substrings that match a regular expression within a string. |
RLIKE | supported | Core SQL functions | Performs a comparison to determine whether a string matches or does not match a specified pattern. Both inputs must be text expressions. |
System functions (299)
| Function | Support | Area | Description |
|---|---|---|---|
EXECUTE_AI_EVALUATION | not supported | AI & ML | Start, retrieve the status of, cancel, or delete a Cortex Agent evaluation run. |
EXPLAIN_GRANTABLE_PRIVILEGES | supported | Access control (grants, roles) | Returns a JSON string representing all grantable privileges for each object type in Snowflake. This function provides comprehensive information about which… |
EXPLAIN_JSON | supported | Queries & DML | This function converts an EXPLAIN plan from JSON to a table. The output is the same as the output of the command EXPLAIN USING TABULAR <statement>. |
EXPLAIN_PRIVILEGES | supported | Access control (grants, roles) | Returns a JSON string that explains which privileges are required to execute a SQL statement. This function analyzes the authorization requirements for a given… |
EXTRACT_SEMANTIC_CATEGORIESEnterprise+ | deferred | Governance (policies, tags, data quality) | Note |
GET_ANACONDA_PACKAGES_REPODATA | deferred | UDFs, procedures, tasks, alerts, scripting | Returns a list of third-party packages that are available from Anaconda. For more information, see Packages policies. |
GET_PYTHON_PROFILER_OUTPUT | deferred | UDFs, procedures, tasks, alerts, scripting | Returns output containing a report generated by the Python code profiler. |
GET_QUERY_OPERATOR_STATS | supported | Queries & DML | Returns statistics about individual query operators within a query that has completed. You can run this function for any completed query that was executed in… |
SHOW_PYTHON_PACKAGES_DEPENDENCIES | deferred | UDFs, procedures, tasks, alerts, scripting | Returns a list of the dependencies and their versions for the Python packages that were specified. |
SYSTEM$ABORT_SESSION | supported | Accounts, users, sessions, warehouses | Aborts the specified session. |
SYSTEM$ABORT_TRANSACTION | supported | Queries & DML | Aborts the specified transaction, if it is running. If the transaction has already been committed or rolled back, then the state of the transaction is not… |
SYSTEM$ACTIVATE_CMK_INFO | not supported | Integrations, network & secrets | Activates Tri-Secret Secure in your account, optionally with private connectivity, by using the customer-managed key (CMK) information that you registered for… |
SYSTEM$ACTIVATE_CMK_INFO_POSTGRES | not supported | Integrations, network & secrets | Activates Snowflake Postgres Tri-Secret Secure in your account by using the CMK (customer-managed key) information that you registered for your account. |
SYSTEM$ACTIVATE_CMK_INFO_SNOWFLAKE_MANAGED_VOLUME | not supported | Integrations, network & secrets | Activates Tri-Secret Secure for Snowflake storage for Iceberg tables in your account by setting your registered customer-managed key (CMK) as the encryption… |
SYSTEM$ADD_EVENT | supported | UDFs, procedures, tasks, alerts, scripting | Add an event for trace. |
SYSTEM$ADD_PRIVATELINK_ENDPOINT_HOSTNAMEBusiness Critical+ | not supported | Integrations, network & secrets | Adds an additional host name to an existing private connectivity endpoint that connects to a service that supports more than one host name on the same… |
SYSTEM$ADD_REFERENCE | supported | Native apps, listings & sharing | Called by a Snowflake Native App to associate a consumer reference string to a reference definition. The app can use this association to access the consumer… |
SYSTEM$ALLOWLIST | supported | Integrations, network & secrets | Returns host names and port numbers to add to your firewall’s allowed list so that you can access Snowflake from behind your firewall. The output of this… |
SYSTEM$ALLOWLIST_PRIVATELINK | not supported | Integrations, network & secrets | Returns host names and port numbers for AWS PrivateLink, Azure Private Link, and Google Cloud Private Service Connect deployments to add to your firewall’s… |
SYSTEM$ALLOW_PROVIDER_TO_SHARE_INTO_VPS | not supported | Core SQL functions | Allows a provider to share listings into the current VPS account. Using a token supplied by a provider of listings, call this function to allow that provider… |
SYSTEM$APPLICATION_GET_LOG_LEVEL | supported | Native apps, listings & sharing | Returns the log level for the specified object. The following objects are supported: |
SYSTEM$APPLICATION_GET_METRIC_LEVEL | supported | Native apps, listings & sharing | Returns the metric level for the specified object. The following objects are supported: |
SYSTEM$APPLICATION_GET_TRACE_LEVEL | supported | Native apps, listings & sharing | Returns the trace level for the specified object. The following objects are supported: |
SYSTEM$APP_COMPATIBILITY_CHECK | supported | Native apps, listings & sharing | Returns the Snowflake edition of the consumer account where an app is installed. |
SYSTEM$AUTHORIZE_PRIVATELINKBusiness Critical+ | not supported | Integrations, network & secrets | Enables private connectivity to the Snowflake service for the current account. |
SYSTEM$AUTHORIZE_SNOWFLAKE_MANAGED_STORAGE_VOLUME_PRIVATELINK_ACCESS | not supported | Integrations, network & secrets | Authorizes Snowflake to access the private endpoint for Azure private endpoints for Snowflake-managed storage volumes for the current account. |
SYSTEM$AUTHORIZE_STAGE_PRIVATELINK_ACCESS | not supported | Integrations, network & secrets | Authorizes Snowflake to access the private endpoint for Azure private endpoints for internal stages and Google Private Service Connect endpoints for internal… |
SYSTEM$AUTO_REFRESH_STATUS | supported | Iceberg & external tables | Returns the automated refresh status for an externally managed Iceberg table. |
SYSTEM$BEGIN_DEBUG_APPLICATIONpreview | supported | Native apps, listings & sharing | Enables session debug mode for a Snowflake Native App. |
SYSTEM$BEHAVIOR_CHANGE_BUNDLE_STATUS | supported | Accounts, users, sessions, warehouses | Returns the status of the specified behavior change release bundle for the current account. |
SYSTEM$BLOCK_INTERNAL_STAGES_PUBLIC_ACCESSBusiness Critical+ | not supported | Integrations, network & secrets | Prevents all public traffic from accessing the internal stage of the current Snowflake account on Microsoft Azure. |
SYSTEM$BLOCK_INTERNAL_STAGES_PUBLIC_ACCESS_WITH_EXCEPTIONBusiness Critical+ | not supported | Integrations, network & secrets | Prevents public traffic from accessing the internal stage of the current Snowflake account on Microsoft Azure, while allowing access from specified IP… |
SYSTEM$BLOCK_SNOWFLAKE_MANAGED_STORAGE_VOLUME_PUBLIC_ACCESS | not supported | Integrations, network & secrets | Prevents all public traffic from accessing the Snowflake-managed storage volume of the current Snowflake account on Microsoft Azure. |
SYSTEM$BLOCK_SNOWFLAKE_MANAGED_STORAGE_VOLUME_PUBLIC_ACCESS_WITH_EXCEPTION | not supported | Integrations, network & secrets | Prevents public traffic from accessing the Snowflake-managed storage volume of the current Snowflake account on Microsoft Azure, while allowing access from… |
SYSTEM$CANCEL_ALL_QUERIES | supported | Accounts, users, sessions, warehouses | Cancels all active/running queries in the specified session. |
SYSTEM$CANCEL_QUERY | supported | Queries & DML | Cancels the specified query (or statement) if it is currently active/running. |
SYSTEM$CANCEL_TASK_GRAPH | not supported | UDFs, procedures, tasks, alerts, scripting | Cancels one or all runs of a task graph, stopping work that is queued or scheduled under the targeted run or runs and marking any task that is already… |
SYSTEM$CAST_MULTI_PARTY_APPROVAL_VOTEBusiness Critical+ | supported | Governance (policies, tags, data quality) | Casts a vote on a pending Multi-party Approval request. An approver calls this function with a decision of APPROVE or REJECT to vote on a request. A requester… |
SYSTEM$CATALOG_LINK_STATUS | supported | Iceberg & external tables | Returns the link status for a specified catalog-linked database. |
SYSTEM$CKE_HASH_FUNCTION | supported | Integrations, network & secrets | Analyzes Cortex Knowledge Extensions (CKE) usage by mapping hashedDocumentIds back to your original document primary keys in the Cortex Search Service. This is… |
SYSTEM$CLEANUP_DATABASE_ROLE_GRANTS | supported | Access control (grants, roles) | Revokes privileges on dropped objects from the share and grants the database role to the share. |
SYSTEM$CLIENT_VERSION_INFO | supported | Accounts, users, sessions, warehouses | Returns version information for Snowflake clients and drivers. |
SYSTEM$CLIENT_VULNERABILITY_INFO | supported | Accounts, users, sessions, warehouses | Returns details about common vulnerabilities and exposures (CVE) fixes and related vulnerabilities for Snowflake clients and drivers. |
SYSTEM$CLUSTERING_DEPTH | supported | Tables, views, streams, sequences | Computes the average depth of the table according to the specified columns (or the clustering key defined for the table). The average depth of a populated… |
SYSTEM$CLUSTERING_INFORMATION | supported | Tables, views, streams, sequences | Returns clustering information, including average clustering depth and Automatic Clustering version, for a table based on one or more columns in the table. |
SYSTEM$COMMIT_MOVE_ORGANIZATION_ACCOUNTBusiness Critical+ | not supported | Accounts, users, sessions, warehouses | Finalizes the process of moving an organization account from one region to another. |
SYSTEM$CONVERT_PIPES_SQS_TO_SNS | not supported | Data loading & unloading | Converts all the auto-ingest pipes in the current account that load data from an S3 bucket through Amazon Simple Queue Service (SQS) notifications so that they… |
SYSTEM$CREATE_BILLING_EVENT | not supported | Native apps, listings & sharing | Creates a billable event that tracks consumer usage of an installed monetized application. If you need to exceed the one event per minute frequency limitation… |
SYSTEM$CREATE_BILLING_EVENTS | not supported | Native apps, listings & sharing | Creates multiple billable events that track consumer usage of installed monetized applications. Use this system function when you need to exceed the one event… |
SYSTEM$CREATE_EVALUATION_DATASET | not supported | AI & ML | Creates a Snowflake dataset for Cortex Agent evaluations from an existing table. The new dataset is registered in the same database and schema as given in the… |
SYSTEM$CURRENT_USER_TASK_NAME | supported | UDFs, procedures, tasks, alerts, scripting | Returns the name of the task currently executing when invoked from the statement or stored procedure defined by the task. |
SYSTEM$DATA_METRIC_SCANEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the rows identified by a data quality metric as containing data that fails a data quality check. For example, if you use the NULL_COUNT data metric… |
SYSTEM$DBT_GET_LAST_FAILED_RUN_TARGET | supported | Container services & dev tooling | Returns the location of dbt artifacts from the most recent failed execution of a dbt project object within the previous 14 days. You can import these artifacts… |
SYSTEM$DBT_GET_LAST_RUN_TARGET | supported | Container services & dev tooling | Returns the location of dbt artifacts from the most recent completed execution of a dbt project object within the previous 14 days, whether the execution… |
SYSTEM$DBT_GET_LAST_SUCCESSFUL_RUN_TARGET | supported | Container services & dev tooling | Returns the location of dbt artifacts from the most recent successful execution of a dbt project object within the previous 14 days. You can import these… |
SYSTEM$DEACTIVATE_CMK_INFO | not supported | Integrations, network & secrets | De-activates Tri-Secret Secure in your account. |
SYSTEM$DEACTIVATE_CMK_INFO_SNOWFLAKE_MANAGED_VOLUME | not supported | Integrations, network & secrets | Deactivates Tri-Secret Secure for Snowflake storage for Iceberg tables in your account by reverting your account’s Snowflake-managed storage volume to… |
SYSTEM$DECODE_PAT | deferred | Accounts, users, sessions, warehouses | Returns information about a programmatic access token, given the secret for the token. This information includes the name of the token, the state of the token,… |
SYSTEM$DEMIGRATE_DBT_PROJECT | supported | Container services & dev tooling | Reverts a migrated dbt project object from the mutable live-version model to the previous versioned object model. |
SYSTEM$DEPROVISION_PRIVATELINK_ENDPOINTBusiness Critical+ | not supported | Integrations, network & secrets | Deprovisions a private connectivity endpoint in the Snowflake VPC or VNet to prevent Snowflake from connecting to an external service by using private… |
SYSTEM$DEPROVISION_PRIVATELINK_ENDPOINT_TSSBusiness Critical+ | not supported | Integrations, network & secrets | Deprovisions a private connectivity endpoint in the Snowflake VPC or VNet to prevent Snowflake from connecting to an external key management service (KMS)… |
SYSTEM$DEREGISTER_CMK_INFO | not supported | Integrations, network & secrets | Cancels registration of your currently-registered customer-managed key (CMK) for use with Tri-Secret Secure. |
SYSTEM$DEREGISTER_CMK_INFO_POSTGRES | not supported | Integrations, network & secrets | Cancels registration of your currently-registered customer-managed key (CMK) for use with Snowflake Postgres Tri-Secret Secure. |
SYSTEM$DEREGISTER_CMK_INFO_SNOWFLAKE_MANAGED_VOLUME | not supported | Integrations, network & secrets | Cancels registration of your currently-registered customer-managed key (CMK) for use with Tri-Secret Secure for Snowflake storage for Iceberg tables. |
SYSTEM$DESC_ICEBERG_ACCESS_IDENTITY | supported | Iceberg & external tables | Returns information about the Snowflake service principal for a specified external cloud provider in an account. |
SYSTEM$DISABLE_BEHAVIOR_CHANGE_BUNDLE | supported | Accounts, users, sessions, warehouses | Disables the behavior changes included in the specified behavior change release bundle for the current account. |
SYSTEM$DISABLE_DATABASE_REPLICATION | supported | Replication, failover & backup | Disable replication for a primary database and any secondary databases linked to it. |
SYSTEM$DISABLE_FEATURE_GROUPS | deferred | Accounts, users, sessions, warehouses | Disables all features in a feature group for the current account. |
SYSTEM$DISABLE_FEATURE_GROUPS_PREVIEW | deferred | Accounts, users, sessions, warehouses | Disables only the preview features in a feature group for the current account. Generally available features in the group remain enabled. |
SYSTEM$DISABLE_GLOBAL_DATA_SHARING_FOR_ACCOUNT | supported | Native apps, listings & sharing | Disables Cross-Cloud Auto-Fulfillment on an account. |
SYSTEM$DISABLE_PREVIEW_ACCESS | supported | Accounts, users, sessions, warehouses | Disables access to open preview and private preview features. |
SYSTEM$DISABLE_PRIVATELINK_ACCESS_ONLYBusiness Critical+preview | not supported | Integrations, network & secrets | Unblocks connections for inbound network traffic that are routed over the public internet. |
SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE | supported | Accounts, users, sessions, warehouses | Enables behavior changes included in the specified behavior change release bundle for the current account. |
SYSTEM$ENABLE_FEATURE_GROUPS | deferred | Accounts, users, sessions, warehouses | Re-enables a feature group for the current account that was previously disabled with SYSTEM$DISABLE_FEATURE_GROUPS or SYSTEM$DISABLE_FEATURE_GROUPS_PREVIEW. |
SYSTEM$ENABLE_GLOBAL_DATA_SHARING_FOR_ACCOUNT | supported | Native apps, listings & sharing | Enables Cross-Cloud Auto-Fulfillment on an account. Cross-Cloud Auto-Fulfillment allows you to automatically provide the share or application package attached… |
SYSTEM$ENABLE_PREVIEW_ACCESS | supported | Accounts, users, sessions, warehouses | Enables access to open preview features. |
SYSTEM$ENCODE_CKE_PRIMARY_KEY | supported | Integrations, network & secrets | Takes one or more primary key columns from a Cortex Knowledge Extensions (CKE) document and converts them into an encoded representation. |
SYSTEM$END_DEBUG_APPLICATIONpreview | supported | Native apps, listings & sharing | Disables session debug mode for a Snowflake Native App. |
SYSTEM$ENFORCE_PRIVATELINK_ACCESS_ONLYBusiness Critical+ | not supported | Integrations, network & secrets | Enforces the behavior that successful connections to your Snowflake account use only your private endpoints. Blocks connections for inbound network traffic… |
SYSTEM$ESTIMATE_AUTOMATIC_CLUSTERING_COSTS | supported | Tables, views, streams, sequences | Returns estimated costs associated with enabling Automatic Clustering for a table. This function is used to do the following: |
SYSTEM$ESTIMATE_QUERY_ACCELERATION | supported | Queries & DML | For a previously executed query, this function returns a JSON object that specifies if the query is eligible to benefit from the query acceleration service. If… |
SYSTEM$ESTIMATE_SEARCH_OPTIMIZATION_COSTSEnterprise+ | supported | Tables, views, streams, sequences | Returns the estimated costs of adding search optimization to a given table and configuring specific columns for search optimization. |
SYSTEM$EVALUATE_DATA_QUALITY_EXPECTATIONSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the expectations for associations between data metric functions (DMFs) and a table, including whether an expectation is currently violated. |
SYSTEM$EVALUATE_DATA_QUALITY_EXPECTATIONS_PERSIST_RESULTEnterprise+ | supported | Governance (policies, tags, data quality) | Evaluates data quality expectations for associations between data metric functions (DMFs) and a table and persists the results to the… |
SYSTEM$EXECUTE_CATALOG_OPERATION | supported | Iceberg & external tables | Executes a catalog operation against a catalog integration so you can inspect and validate the remote catalog that the integration connects to. |
SYSTEM$EXPLAIN_JSON_TO_TEXT | supported | Queries & DML | This function converts EXPLAIN output from JSON to formatted text. |
SYSTEM$EXPLAIN_PLAN_JSON | supported | Queries & DML | Given the text of a SQL statement, this function generates the EXPLAIN plan in JSON. |
SYSTEM$EXPORT_TDS_FROM_SEMANTIC_VIEWpreview | supported | AI & ML | Returns a semantic view in Tableau Data Source (TDS) format. |
SYSTEM$EXTERNAL_TABLE_PIPE_STATUS | supported | Iceberg & external tables | Retrieves a JSON representation of the current refresh status for the internal (hidden) pipe object associated with an external table. |
SYSTEM$FETCH_EXTERNAL_SECRET_FROM_INTEGRATIONpreview | not supported | Integrations, network & secrets | Fetches one secret value through an external secret provider security integration. |
SYSTEM$FINISH_OAUTH_FLOW | not supported | Integrations, network & secrets | Sets the OAUTH_REFRESH_TOKEN parameter value of the secret passed as an argument in the SYSTEM$START_OAUTH_FLOW call that began the OAuth flow. |
SYSTEM$GDS_CREATE_DATABASE_FROM_LISTING | not supported | Native apps, listings & sharing | Mounts a database from a listing that is accessible from the current VPS account. Use the CALL to call this system stored procedure. |
SYSTEM$GDS_GET_AVAILABLE_LISTINGS | not supported | Native apps, listings & sharing | Returns the listings that are accessible from the current VPS account. Use the CALL to call this system stored procedure. |
SYSTEM$GDS_REQUEST_LISTING | not supported | Native apps, listings & sharing | Requests data from a listing that you have access to. Use the CALL to call this stored procedure. |
SYSTEM$GENERATE_CROSS_REGION_GROUP_SHARING_TOKEN | not supported | Core SQL functions | Generates a token to allow sharing with another VPS account, for example to allow a provider to share a listing with the current VPS account. |
SYSTEM$GENERATE_SAML_CSR | not supported | Integrations, network & secrets | Generates a certificate signing request (CSR) with the subject set to the subject of the certificate stored in the SAML2 integration and can specify the DN to… |
SYSTEM$GENERATE_SCIM_ACCESS_TOKEN | supported | Integrations, network & secrets | Returns a new SCIM access token that is valid for six months. |
SYSTEM$GET_ALERT_CONFIG | supported | UDFs, procedures, tasks, alerts, scripting | Returns information from an alert configuration. |
SYSTEM$GET_ALERT_TEMPLATE | not supported | UDFs, procedures, tasks, alerts, scripting | Returns the definition of a single alert template, including the variables you can set, their data types, defaults, allowed values, and a ready-to-adapt… |
SYSTEM$GET_ALL_DEFAULT_COLUMNS_OVERRIDES | supported | Accounts, users, sessions, warehouses | Returns the list of columns that were set by previous calls to SYSTEM$SET_DEFAULT_COLUMNS_OVERRIDE_FOR_SHOW_COMMAND and… |
SYSTEM$GET_ALL_REFERENCES | supported | Native apps, listings & sharing | Iterates through all associations for a reference and returns information about the associations. |
SYSTEM$GET_APPLICATION_SERVICE_LOGS | partial | Native apps, listings & sharing | Returns the container logs for a running Application Service. Use this function to troubleshoot a deployed application. |
SYSTEM$GET_AWS_SNS_IAM_POLICY | supported | Integrations, network & secrets | Returns an AWS IAM policy statement that must be added to the Amazon SNS topic policy in order to grant the Amazon SQS messaging queue created by Snowflake to… |
SYSTEM$GET_CATALOG_LINKED_DATABASE_CONFIG | supported | Iceberg & external tables | Returns the configuration parameters set on the specified catalog-linked database. The output is in JSON format. |
SYSTEM$GET_CLASSIFICATION_RESULTEnterprise+ | deferred | Governance (policies, tags, data quality) | Returns the classification result of the specified object. |
SYSTEM$GET_CMK_AKV_CONSENT_URL | not supported | Integrations, network & secrets | Returns a consent URL to the Azure Key Vault account related to customer-managed keys. |
SYSTEM$GET_CMK_CONFIG | not supported | Integrations, network & secrets | Returns configuration information for use with customer-managed keys (CMKs) and Tri-Secret Secure. |
SYSTEM$GET_CMK_CONFIG_POSTGRES | not supported | Integrations, network & secrets | Returns configuration information for use with customer-managed keys (CMKs) and Snowflake Postgres Tri-Secret Secure. |
SYSTEM$GET_CMK_CONFIG_SNOWFLAKE_MANAGED_VOLUME | not supported | Integrations, network & secrets | Returns the cloud-provider configuration you need to authorize Snowflake to use your customer-managed key (CMK) with Tri-Secret Secure for Snowflake storage… |
SYSTEM$GET_CMK_INFO | not supported | Integrations, network & secrets | Returns the status of your customer-managed key (CMK) for use with Tri-Secret Secure. |
SYSTEM$GET_CMK_INFO_POSTGRES | not supported | Integrations, network & secrets | Returns the status of your customer-managed key (CMK) for use with Snowflake Postgres Tri-Secret Secure. Information is returned only for currently registered… |
SYSTEM$GET_CMK_INFO_SNOWFLAKE_MANAGED_VOLUME | not supported | Integrations, network & secrets | Returns the registration and activation status of your customer-managed key (CMK) for use with Tri-Secret Secure for Snowflake storage for Iceberg tables. |
SYSTEM$GET_CMK_KMS_KEY_POLICY | not supported | Integrations, network & secrets | Returns an ARRAY containing a snippet of the AWS Key Management Service policy information related to customer-managed keys. |
SYSTEM$GET_COLUMN_COMMENT_PROPAGATION_SOURCEpreview | not supported | Core SQL functions | Returns the column that a propagated comment was originally written on. Given a column whose comment arrived through column comment propagation, the function… |
SYSTEM$GET_COMPUTE_POOL_PENDING_MAINTENANCE | supported | Container services & dev tooling | Retrieves information about pending Snowflake maintenance actions for compute pools in the current account. |
SYSTEM$GET_DBT_LOG | supported | Container services & dev tooling | Returns logs for the specified run for a dbt Projects on Snowflake. |
SYSTEM$GET_DEBUG_STATUSpreview | supported | Native apps, listings & sharing | Returns the session debug mode status of the current session. |
SYSTEM$GET_DEFAULT_COLUMNS_OVERRIDE_FOR_SHOW_COMMAND | supported | Accounts, users, sessions, warehouses | Returns the list of columns that were set by a previous call to SYSTEM$SET_DEFAULT_COLUMNS_OVERRIDE_FOR_SHOW_COMMAND. |
SYSTEM$GET_DEFAULT_COLUMNS_OVERRIDE_FOR_SYSTEM_OBJECT | supported | Accounts, users, sessions, warehouses | Returns the list of columns that were set by a previous call to SYSTEM$SET_DEFAULT_COLUMNS_OVERRIDE_FOR_SYSTEM_OBJECT for the specified Snowflake view (for… |
SYSTEM$GET_DIRECTORY_TABLE_STATUS | supported | Data loading & unloading | Returns a list of records that contain the directory table consistency status for stages in your account. Consistency status indicates whether a directory… |
SYSTEM$GET_GCP_KMS_CMK_GRANT_ACCESS_CMD | not supported | Integrations, network & secrets | Returns a Google Cloud gcloud command to obtain policy information for the Google Cloud Key Management Service for use with customer-managed keys. |
SYSTEM$GET_HASH_FOR_APPLICATION | supported | Native apps, listings & sharing | Returns the hash value for a Snowflake Native App or query ID. |
SYSTEM$GET_ICEBERG_TABLE_INFORMATION | supported | Iceberg & external tables | Returns the location of the root metadata file and status of the latest snapshot for an Apache Iceberg™ table. |
SYSTEM$GET_INSTANCE_FAMILY_PLACEMENT_GROUPS | supported | Container services & dev tooling | Returns the list of placement groups supported for the specified instance family for Snowpark Container Services compute pool nodes. |
SYSTEM$GET_LISTING_URL_FOR_EXTERNAL_CONSUMER | not supported | Native apps, listings & sharing | Returns the connection details that an external consumer uses to connect to an external listing: the catalog name, catalog URI, OAuth scope, and OAuth token… |
SYSTEM$GET_LOGIN_FAILURE_DETAILS | deferred | Accounts, users, sessions, warehouses | Returns a JSON object that represents an unsuccessful login attempt associated with External OAuth, SAML, or key pair authentication. The JSON object contains… |
SYSTEM$GET_PREDECESSOR_RETURN_VALUE | supported | UDFs, procedures, tasks, alerts, scripting | Retrieves the return value for the predecessor task in a task graph. The return value is explicitly set by the predecessor task by calling the… |
SYSTEM$GET_PREVIEW_ACCESS_STATUS | supported | Accounts, users, sessions, warehouses | Determine if access to all preview features is enabled or disabled. |
SYSTEM$GET_PRIVATELINK | not supported | Integrations, network & secrets | Verifies whether your current account is authorized for private connectivity to the Snowflake service. |
SYSTEM$GET_PRIVATELINK_AUTHORIZED_ENDPOINTSBusiness Critical+ | not supported | Integrations, network & secrets | Returns a list of the authorized endpoints for your current account to use with private connectivity to the Snowflake service. |
SYSTEM$GET_PRIVATELINK_CONFIG | not supported | Integrations, network & secrets | Returns a JSON representation of the Snowflake account information necessary to facilitate the self-service configuration of private connectivity to the… |
SYSTEM$GET_PRIVATELINK_ENDPOINTS_INFOBusiness Critical+ | not supported | Integrations, network & secrets | Returns the status of all private connectivity endpoints that you provision. The endpoint can be a service endpoint or a resource endpoint depending on the… |
SYSTEM$GET_PRIVATELINK_ENDPOINT_REGISTRATIONSBusiness Critical+ | not supported | Integrations, network & secrets | Returns the registered private endpoints that can route your connection to the Snowflake service. |
SYSTEM$GET_PURCHASE_ATTRIBUTESpreview | not supported | Native apps, listings & sharing | Identifies the behavior of a listing at runtime. |
SYSTEM$GET_REFERENCED_OBJECT_ID_HASH | partial | Native apps, listings & sharing | Returns the hash of the entity ID of the consumer object currently resolved by the reference. |
SYSTEM$GET_REMOTE_STANDARD_LISTING_STATUS | not supported | Native apps, listings & sharing | Returns the status of a listing that you (the provider) have shared with a VPS consumer. |
SYSTEM$GET_RESULTSET_STATUS | deferred | Queries & DML | Returns the status of a RESULTSET in a Snowflake Scripting stored procedure. |
SYSTEM$GET_SECURITY_INTEGRATIONS_FOR_API_PROVIDERpreview | not supported | Integrations, network & secrets | For a specified API provider, lists the external secret provider security integrations visible to the current role. |
SYSTEM$GET_SERVICE_CALLER_TOKEN_EXPIRY | supported | Container services & dev tooling | Returns the expiration timestamp of a caller’s rights login token for a Snowpark Container Services service. |
SYSTEM$GET_SERVICE_DNS_DOMAIN | supported | Container services & dev tooling | Given a schema name, returns that schema’s DNS namespace hash as a string. |
SYSTEM$GET_SERVICE_LOGS | supported | Container services & dev tooling | Retrieves local logs from a Snowpark Container Services service container. |
SYSTEM$GET_SNOWFLAKE_EGRESS_IP_RANGES | not supported | Integrations, network & secrets | Using egress IP addresses you generate with Snowflake, you can allow ingress access from the following Snowflake features: |
SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO | supported | Accounts, users, sessions, warehouses | Returns platform information for the cloud provider that hosts your Snowflake account. The function returns different values, depending on your cloud provider: |
SYSTEM$GET_STAGE_PRIVATELINK_AUTHORIZED_ENDPOINTSBusiness Critical+ | not supported | Integrations, network & secrets | Returns the list of private connectivity sources that have been authorized to access the internal stage of the current account through previous calls to… |
SYSTEM$GET_TABLE_ARCHIVE_METADATA | not supported | Tables, views, streams, sequences | Returns metadata about the archived data for a table, without requiring data retrieval from the archive tier. |
SYSTEM$GET_TAG | supported | Governance (policies, tags, data quality) | Returns the tag value associated with the specified Snowflake object or column. Returns NULL if a tag is not set on the specified Snowflake object or column. |
SYSTEM$GET_TAG_ALLOWED_VALUES | supported | Governance (policies, tags, data quality) | Returns a comma-separated list of string values that can be set on a supported object, or NULL to indicate the tag key does not have any specified string… |
SYSTEM$GET_TAG_ON_CURRENT_COLUMN | supported | Governance (policies, tags, data quality) | Returns the tag string value assigned to the column based upon the specified tag or NULL if a tag is not assigned to the specified column. |
SYSTEM$GET_TAG_ON_CURRENT_TABLE | supported | Governance (policies, tags, data quality) | Returns the tag string value assigned to the table based upon the specified tag or NULL if a tag is not assigned to the specified table. |
SYSTEM$GET_TASK_GRAPH_CONFIG | supported | UDFs, procedures, tasks, alerts, scripting | Returns information from a task graph configuration. |
SYSTEM$GET_TZDB_VERSION | supported | Core SQL functions | Returns the release of the IANA Time Zone Database that Snowflake uses for the current session. |
SYSTEM$GET_ZEROCOPY_CONNECTOR_CONFIG | not supported | Core SQL functions | Returns the connection details of a Zero-Copy connector that you provide to the partner when you set up the connection. The output is in JSON format. |
SYSTEM$GET_ZEROCOPY_CONNECTOR_LINKED_DATABASE_CONFIG | not supported | Core SQL functions | Returns the Zero-Copy connector configuration of a catalog-linked database that was created from a Zero-Copy connector with CREATE DATABASE …… |
SYSTEM$GET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL | not supported | Core SQL functions | Returns the metadata auto-refresh interval of a Zero-Copy connector. |
SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER | supported | Accounts, users, sessions, warehouses | Enables replication and failover features for a specified account in an organization. |
SYSTEM$HOLD_PRIVILEGE_ON_ACCOUNT | not supported | Access control (grants, roles) | Indicates if a privilege has been granted to a Snowflake Native App. For example, providers can use this function in the setup script to check if the app has… |
SYSTEM$INGEST_REBIND_PIPE | not supported | Data loading & unloading | Rebinds an auto-ingest pipe to the notification channel for its stage’s current storage location or, on a Google Cloud Storage or Microsoft Azure stage, to a… |
SYSTEM$INITIATE_MOVE_ORGANIZATION_ACCOUNTBusiness Critical+ | not supported | Accounts, users, sessions, warehouses | Starts the process of moving an organization account to a new region. |
SYSTEM$INTERNAL_STAGES_PUBLIC_ACCESS_STATUSBusiness Critical+ | not supported | Integrations, network & secrets | Checks to see whether public IP addresses are allowed to access the internal stage of the current Snowflake account on Microsoft Azure. |
SYSTEM$ISSUE_PER_ACCOUNT_APP_SERVICE_CERTIFICATE | not supported | Integrations, network & secrets | Formerly caused Snowflake to maintain the public TLS certificate used for terminating TLS connections to Snowflake-hosted app services (Streamlit in Snowflake,… |
SYSTEM$ISSUE_PER_ACCOUNT_CERTIFICATES | not supported | Integrations, network & secrets | Causes Snowflake to maintain public TLS certificates on behalf of the account. These certificates are used for terminating TLS connections when you access… |
SYSTEM$ISSUE_WORKLOAD_IDENTITY_FEDERATION_TOKEN | not supported | Integrations, network & secrets | Returns an ID token that a Snowflake workload can send to an external service for authentication purposes. |
SYSTEM$IS_APPLICATION_ALL_MANDATORY_TELEMETRY_EVENT_DEFINITIONS_ENABLED | supported | Native apps, listings & sharing | Indicates that the AUTHORIZE_TELEMETRY_EVENT_SHARING property has been set on the app. |
SYSTEM$IS_APPLICATION_AUTHORIZED_FOR_TELEMETRY_EVENT_SHARING | supported | Native apps, listings & sharing | Indicates that the AUTHORIZE_TELEMETRY_EVENT_SHARING has been set on the app. |
SYSTEM$IS_APPLICATION_INSTALLED_FROM_SAME_ACCOUNT | supported | Native apps, listings & sharing | Shows if an app is installed on the same account as the application package it is based on. |
SYSTEM$IS_APPLICATION_SHARING_EVENTS_WITH_PROVIDER | supported | Native apps, listings & sharing | Shows if event sharing is enabled. |
SYSTEM$IS_GLOBAL_DATA_SHARING_ENABLED_FOR_ACCOUNT | supported | Native apps, listings & sharing | Specifies whether Cross-Cloud Auto-Fulfillment is enabled or disabled on an account. |
SYSTEM$IS_LISTING_PURCHASED | supported | Native apps, listings & sharing | Returns TRUE if the consumer account querying data has purchased the listing, otherwise returns FALSE. If an account is trialing the listing, the function… |
SYSTEM$IS_LISTING_TRIALpreview | not supported | Native apps, listings & sharing | Limits the functionality of a Snowflake Native App based on whether a consumer is trialing the application as part of a Limited trial listings or has access to… |
SYSTEM$LAST_CHANGE_COMMIT_TIME | deferred | Queries & DML | Returns a token that can be used to detect whether a database table or view changed between two calls to the function. If the token returned by a call is… |
SYSTEM$LINK_ACCOUNT_OBJECTS_BY_NAMEBusiness Critical+ | supported | Replication, failover & backup | Adds a global identifier to account objects in the target (current) account that were created using scripts and that match objects with the same names in the… |
SYSTEM$LINK_ORGANIZATION_USER | supported | Accounts, users, sessions, warehouses | Links an organization user with a user that already exists in the regular account. |
SYSTEM$LINK_ORGANIZATION_USER_GROUP | supported | Accounts, users, sessions, warehouses | Links an organization user group with an access control role that already exists in the regular account. |
SYSTEM$LIST_ALERT_TEMPLATES | not supported | UDFs, procedures, tasks, alerts, scripting | Lists the alert templates that are available in your account, grouped by product. |
SYSTEM$LIST_APPLICATION_RESTRICTED_FEATURES | supported | Native apps, listings & sharing | Returns a JSON object containing a list of restricted features that the consumer has allowed a Snowflake Native App to use. |
SYSTEM$LIST_EXTERNAL_SECRETSpreview | not supported | Integrations, network & secrets | Lists the secrets visible to an external secret provider security integration. |
SYSTEM$LIST_ICEBERG_TABLES_FROM_CATALOG | supported | Iceberg & external tables | Lists tables in a remote Apache Iceberg™ REST catalog (including Snowflake Open Catalog). |
SYSTEM$LIST_NAMESPACES_FROM_CATALOG | supported | Iceberg & external tables | Lists the namespaces in a remote Apache Iceberg™ REST catalog (including Snowflake Open Catalog). |
SYSTEM$LOCATE_DBT_ARCHIVE | supported | Container services & dev tooling | Returns the URL from which you can retrieve zipped dbt run artifacts for a specified dbt project object. |
SYSTEM$LOCATE_DBT_ARTIFACTS | supported | Container services & dev tooling | Returns the location of artifacts from a specified dbt project object run (for example, manifest.json). |
SYSTEM$LOG | supported | UDFs, procedures, tasks, alerts, scripting | Logs a message at the specified severity level. |
SYSTEM$LOG_DEBUG | supported | UDFs, procedures, tasks, alerts, scripting | Logs a message at the specified severity level. |
SYSTEM$LOG_ERROR | supported | UDFs, procedures, tasks, alerts, scripting | Logs a message at the specified severity level. |
SYSTEM$LOG_FATAL | supported | UDFs, procedures, tasks, alerts, scripting | Logs a message at the specified severity level. |
SYSTEM$LOG_INFO | supported | UDFs, procedures, tasks, alerts, scripting | Logs a message at the specified severity level. |
SYSTEM$LOG_TRACE | supported | UDFs, procedures, tasks, alerts, scripting | Logs a message at the specified severity level. |
SYSTEM$LOG_WARN | supported | UDFs, procedures, tasks, alerts, scripting | Logs a message at the specified severity level. |
SYSTEM$MIGRATE_DBT_PROJECT | supported | Container services & dev tooling | Migrates a dbt project object to the mutable live-version model. |
SYSTEM$MIGRATE_LEGACY_EVENT_ROUTING_CONFIGURATION | supported | Accounts, users, sessions, warehouses | Migrates the legacy event account configuration by creating a new event routing table with corresponding rules. The function doesn’t activate the new table. |
SYSTEM$MIGRATE_SAML_IDP_REGISTRATION | not supported | Integrations, network & secrets | Migrates an existing SAML identity provider (i.e. IdP) configuration as defined by the account parameter SAML_IDENTITY_PROVIDER to a security integration. |
SYSTEM$OPT_IN_INTERNAL_STAGE_NETWORK_LOGS | not supported | Integrations, network & secrets | Starts record collection of network access attempts to internal stage locations for this account. You can view these records in the… |
SYSTEM$OPT_OUT_INTERNAL_STAGE_NETWORK_LOGS | not supported | Integrations, network & secrets | Stops record collection of network access attempts to internal stage locations for this account. You can view these records in the… |
SYSTEM$OPT_OUT_MALICIOUS_IP_PROTECTION_BY_CATEGORY | not supported | Integrations, network & secrets | Disables Malicious IP Protection for one or more curated IP categories in the current account. Use this function to allow traffic that would otherwise be… |
SYSTEM$PARQUET_DIRECT_AUTO_REFRESH_STATUSpreview | not supported | Iceberg & external tables | Returns the current auto-refresh status for a Parquet Direct Iceberg table. Use this function to check whether event-driven auto-refresh is running as expected… |
SYSTEM$PIPE_FORCE_RESUME | supported | Data loading & unloading | Forces a pipe paused using ALTER PIPE to resume. This is necessary in either of the following scenarios: |
SYSTEM$PIPE_REBINDING_WITH_NOTIFICATION_CHANNEL | not supported | Data loading & unloading | Retries the notification channel binding process when a replicated pipe has not been successfully bound to a notification channel during replication time.… |
SYSTEM$PIPE_STATUS | supported | Data loading & unloading | Retrieves a JSON representation of the current status of a pipe. |
SYSTEM$PREDECESSORS_STATEpreview | supported | UDFs, procedures, tasks, alerts, scripting | Indicates whether the predecessors of the current task completed in the states described by a specified condition. Use this function in the WHEN clause of a… |
SYSTEM$PROVISION_PRIVATELINK_ENDPOINTBusiness Critical+ | not supported | Integrations, network & secrets | Provisions a private connectivity endpoint in the Snowflake VPC or VNet to enable Snowflake to connect to an external service by using private connectivity.… |
SYSTEM$PROVISION_PRIVATELINK_ENDPOINT_TSSBusiness Critical+ | not supported | Integrations, network & secrets | Provisions a private connectivity endpoint in the Snowflake VPC or VNet to enable Snowflake to connect to a key management service (KMS) by using private… |
SYSTEM$QUERY_REFERENCE | not supported | Native apps, listings & sharing | Returns a query reference that you can pass to a stored procedure. Within the stored procedure, when you execute the query, the query is performed using the… |
SYSTEM$READ_ICEBERG_TABLE_PROPERTY | supported | Iceberg & external tables | Returns Iceberg table properties from the metadata file of a Snowflake-managed or externally managed Apache Iceberg™ table. |
SYSTEM$READ_OSI_YAML_FROM_SEMANTIC_VIEWpreview | not supported | AI & ML | Deprecated |
SYSTEM$READ_OSSIE_YAML_FROM_SEMANTIC_VIEWpreview | not supported | AI & ML | Reads an existing semantic view and returns its definition as an Apache Ossie (incubating) YAML document. |
SYSTEM$READ_YAML_FROM_SEMANTIC_VIEW | supported | AI & ML | Returns the specification of a semantic model (in YAML format) for a semantic view. |
SYSTEM$REFERENCE | supported | Native apps, listings & sharing | Returns a reference to an object (a table, view, or function). When you execute SQL actions on a reference to an object, the actions are performed using the… |
SYSTEM$REGISTER_CMK_INFO | not supported | Integrations, network & secrets | Registers your customer-managed key (CMK) for use with Tri-Secret Secure. |
SYSTEM$REGISTER_CMK_INFO_POSTGRES | not supported | Integrations, network & secrets | Registers your customer-managed key (CMK) for use with Snowflake Postgres Tri-Secret Secure. |
SYSTEM$REGISTER_CMK_INFO_SNOWFLAKE_MANAGED_VOLUME | not supported | Integrations, network & secrets | Registers your customer-managed key (CMK) for use with Tri-Secret Secure for Snowflake storage for Iceberg tables. |
SYSTEM$REGISTER_PRIVATELINK_ENDPOINTBusiness Critical+ | not supported | Integrations, network & secrets | Registers a private connectivity endpoint to route your connection to the Snowflake service. |
SYSTEM$REMOTE_APP_OPERATION | not supported | Native apps, listings & sharing | Performs a remote app operation on a Snowflake Native App. This function is available only to providers. |
SYSTEM$REMOVE_ALL_REFERENCES | supported | Native apps, listings & sharing | Deletes all associations to the reference. |
SYSTEM$REMOVE_PRIVATELINK_ENDPOINT_HOSTNAMEBusiness Critical+ | not supported | Integrations, network & secrets | Removes an additional host name from an existing private connectivity endpoint. Use this function to remove a host name that you previously added with… |
SYSTEM$REMOVE_REFERENCE | supported | Native apps, listings & sharing | Removes an association from the reference to an object in the consumer account. |
SYSTEM$REPORT_HEALTH_STATUS | supported | Container services & dev tooling | Sends application health information from a consumer app to the provider account. |
SYSTEM$RESOLVE_PYTHON_PACKAGES | deferred | UDFs, procedures, tasks, alerts, scripting | Returns a list of the resolved dependencies and their versions for the Python packages that were specified. This function works with packages from both… |
SYSTEM$RESTORE_PRIVATELINK_ENDPOINTBusiness Critical+ | not supported | Integrations, network & secrets | Restores a private connectivity endpoint in the Snowflake VPC or VNet to enable Snowflake to connect to an external service using private connectivity. The… |
SYSTEM$RESTORE_PRIVATELINK_ENDPOINT_TSSBusiness Critical+ | not supported | Integrations, network & secrets | Restores a private connectivity endpoint in the Snowflake VPC or VNet to enable Snowflake to connect to an external key management service (KMS) resource by… |
SYSTEM$REVOKE_PRIVATELINK | not supported | Integrations, network & secrets | Disables private connectivity to the Snowflake service for the current account. |
SYSTEM$REVOKE_SNOWFLAKE_MANAGED_STORAGE_VOLUME_PRIVATELINK_ACCESS | not supported | Integrations, network & secrets | Revokes the authorization for Snowflake to access the private endpoint for Azure private endpoints for Snowflake-managed storage volumes for the current… |
SYSTEM$REVOKE_STAGE_PRIVATELINK_ACCESS | not supported | Integrations, network & secrets | Revokes the authorization for Snowflake to access the private endpoint for Azure private endpoints for internal stages and Google Private Service Connect… |
SYSTEM$SAP_PUBLISH_DATA_PRODUCT | not supported | Core SQL functions | Publishes the Iceberg tables in a Snowflake share to SAP® BDC as a data product. |
SYSTEM$SCHEDULE_ASYNC_REPLICATION_GROUP_REFRESH | supported | Replication, failover & backup | Starts a refresh operation for a replication group or a failover group, in the background. You can call this function in a stored procedure to begin one or… |
SYSTEM$SEND_NOTIFICATIONS_TO_CATALOG | deferred | Iceberg & external tables | Sends a notification to Snowflake Open Catalog to update Snowflake-managed Apache Iceberg™ tables in Open Catalog with the latest table changes, and returns… |
SYSTEM$SET_APPLICATION_RESTRICTED_FEATURE_ACCESS | supported | Native apps, listings & sharing | Enables a restricted feature for a Snowflake Native App. Currently, only external and Apache Iceberg™ tables are supported. |
SYSTEM$SET_CATALOG_INTEGRATION | supported | Iceberg & external tables | Replaces the catalog integration associated with an externally managed Apache Iceberg™ table. |
SYSTEM$SET_DEFAULT_COLUMNS_OVERRIDE_FOR_SHOW_COMMAND | supported | Accounts, users, sessions, warehouses | Controls the columns that should be returned when the specified SHOW <objects> command is executed. |
SYSTEM$SET_DEFAULT_COLUMNS_OVERRIDE_FOR_SYSTEM_OBJECT | supported | Accounts, users, sessions, warehouses | Controls the columns that should be returned when you select all columns (SELECT *) from the specified Snowflake view (for example, from a specific… |
SYSTEM$SET_EVENT_SHARING_ACCOUNT_FOR_REGION | not supported | Native apps, listings & sharing | Sets the event account for a region. |
SYSTEM$SET_PRIVATELINK_ENDPOINT_HOSTNAMEBusiness Critical+ | not supported | Integrations, network & secrets | Modifies only the host name of an existing private connectivity endpoint. |
SYSTEM$SET_REFERENCE | supported | Native apps, listings & sharing | Called by a Snowflake Native App to associate a consumer reference string to a reference definition. The app can use this association to access the consumer… |
SYSTEM$SET_RETURN_VALUE | supported | UDFs, procedures, tasks, alerts, scripting | Explicitly sets the return value for a task. |
SYSTEM$SET_ROW_TIMESTAMP_ON_ALL_SUPPORTED_TABLES | supported | Tables, views, streams, sequences | Use this system function to bulk enable row timestamps on existing tables. |
SYSTEM$SET_SPAN_ATTRIBUTES | supported | UDFs, procedures, tasks, alerts, scripting | Sets attribute name and value associated with a span containing trace events. |
SYSTEM$SET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL | not supported | Core SQL functions | Sets the metadata auto-refresh interval of a Zero-Copy connector. |
SYSTEM$SHOW_ACTIVE_BEHAVIOR_CHANGE_BUNDLES | not supported | Accounts, users, sessions, warehouses | Returns an array of the currently available behavior change release bundles, the default state of each bundle, and the actual state of the bundle for the… |
SYSTEM$SHOW_ALLOWED_PROVIDER_ORGANIZATIONS | not supported | Core SQL functions | Lists the providers that are allowed to share private listings with the current VPS account. |
SYSTEM$SHOW_ARTIFACT_GRANTS | not supported | Core SQL functions | Returns a JSON document listing grants recorded on a Snowflake Artifact. Artifact grants aren’t shown by the general SHOW GRANTS command. There is no SHOW… |
SYSTEM$SHOW_BUDGETS_FOR_RESOURCE | supported | Accounts, users, sessions, warehouses | Returns a string containing a list of the budgets that track a specified resource (for example, a table or a schema). |
SYSTEM$SHOW_BUDGETS_IN_ACCOUNT | supported | Accounts, users, sessions, warehouses | Returns the budgets in the account for which you have access privileges. |
SYSTEM$SHOW_BUDGET_SHARED_RESOURCE_CANDIDATES | supported | Accounts, users, sessions, warehouses | Returns the list of resources that can be added as shared resources to a budget. |
SYSTEM$SHOW_DYNAMIC_TABLES_CREATED_FOR_RESHARING | not supported | Native apps, listings & sharing | When a consumer of a listing reshares the listing’s data into another region, Snowflake creates hidden dynamic tables to enable listing auto-fulfillment in the… |
SYSTEM$SHOW_EVENT_SHARING_ACCOUNTS | not supported | Native apps, listings & sharing | Shows event accounts in a provider organization. |
SYSTEM$SHOW_MOVE_ORGANIZATION_ACCOUNT_STATUSBusiness Critical+ | not supported | Accounts, users, sessions, warehouses | Returns the status of an attempt to move an organization account. |
SYSTEM$SHOW_OAUTH_CLIENT_SECRETS | not supported | Integrations, network & secrets | Returns the client secrets in a string. The client ID and a client secret must be included in the authorization header to the OAuth token endpoint. |
SYSTEM$SHOW_ORGANIZATION | not supported | Core SQL functions | Returns details about your organization, including its name, allowed domain names, and default tenant type. |
SYSTEM$SHOW_SENSITIVE_DATA_MONITORED_ENTITIESEnterprise+ | supported | Governance (policies, tags, data quality) | Returns a JSON array of databases or schemas that are associated with a classification profile, which indicates that objects in these entities are monitored by… |
SYSTEM$SNOWFLAKE_MANAGED_STORAGE_VOLUME_PUBLIC_ACCESS_STATUS | not supported | Integrations, network & secrets | Checks to see whether public IP addresses are allowed to access the Snowflake-managed storage volume of the current Snowflake account on Microsoft Azure. |
SYSTEM$SNOWPIPE_STREAMING_UPDATE_CHANNEL_OFFSET_TOKEN | supported | Data loading & unloading | Updates the offset token for a particular channel used by Snowpipe Streaming with a new offset token. |
SYSTEM$START_OAUTH_FLOW | not supported | Integrations, network & secrets | Initiates the OAUTH client flow, returning a URL you use in a browser to complete the OAuth consent process. |
SYSTEM$START_USER_EMAIL_VERIFICATION | supported | Accounts, users, sessions, warehouses | Starts the email verification process for a user. The system sends a verification email to the user’s email address. |
SYSTEM$STREAM_BACKLOG | supported | Tables, views, streams, sequences | Returns the set of table versions between the current offset for a specified stream and the current timestamp. This function accepts any stream type as input… |
SYSTEM$STREAM_GET_TABLE_TIMESTAMP | deferred | Tables, views, streams, sequences | Returns the timestamp in nanoseconds of the latest table version at or before the current offset for the specified stream. When the stream is queried (or… |
SYSTEM$STREAM_HAS_DATA | supported | Tables, views, streams, sequences | Indicates whether a specified stream contains change data capture (CDC) records. |
SYSTEM$SUPPORTED_DBT_VERSIONS | supported | Container services & dev tooling | Returns a JSON array containing the versions that Snowflake supports for dbt Projects on Snowflake. |
SYSTEM$SYNC_ZEROCOPY_OBJECTS | not supported | Core SQL functions | Starts one discovery cycle for a catalog-linked database that was created from a Zero-Copy connector, without waiting for the next scheduled cycle. A discovery… |
SYSTEM$TAG_VALUE_CONTAINS | supported | Governance (policies, tags, data quality) | Returns TRUE if the specified tag on the specified object or column contains the specified string value. Returns FALSE if the value is not present or the tag… |
SYSTEM$TAG_VALUE_CONTAINS_ON_CURRENT_COLUMN | supported | Core SQL functions | Returns TRUE if the specified tag on the column that a policy protects contains the specified string value. Returns FALSE if that value is not assigned, or if… |
SYSTEM$TAG_VALUE_CONTAINS_ON_CURRENT_TABLE | supported | Core SQL functions | Returns TRUE if the specified tag on the table that a policy protects contains the specified string value. Returns FALSE if that value is not assigned, or if… |
SYSTEM$TASK_COMPLETION_STATEpreview | supported | UDFs, procedures, tasks, alerts, scripting | Returns the state that a specified task in the current task graph run completed in. Use this function in the WHEN clause of a task to branch on the outcome of… |
SYSTEM$TASK_DEPENDENTS_ENABLE | supported | UDFs, procedures, tasks, alerts, scripting | Recursively resumes a specified task and all its dependent tasks. This function allows the owner of a task graph (like the role with the OWNERSHIP privilege on… |
SYSTEM$TASK_RUNTIME_INFO | supported | UDFs, procedures, tasks, alerts, scripting | Returns information about the current task run. If this function is called outside of a task run, it fails with an error. |
SYSTEM$TRIGGER_LISTING_REFRESH | supported | Native apps, listings & sharing | Triggers a one-time, on-demand data refresh for a provider’s databases or listings, accessible to all consumers. The refresh job begins immediately upon… |
SYSTEM$TYPEOF | supported | Core SQL functions | Returns a string representing the SQL data type associated with an expression. |
SYSTEM$UNBLOCK_INTERNAL_STAGES_PUBLIC_ACCESSBusiness Critical+ | not supported | Integrations, network & secrets | Allows traffic from public IP addresses to access the internal stage of the current Snowflake account on Microsoft Azure. |
SYSTEM$UNBLOCK_SNOWFLAKE_MANAGED_STORAGE_VOLUME_PUBLIC_ACCESS | not supported | Integrations, network & secrets | Allows traffic from public IP addresses to access the Snowflake-managed storage volume of the current Snowflake account on Microsoft Azure. |
SYSTEM$UNLINK_ORGANIZATION_USER | supported | Accounts, users, sessions, warehouses | Unlinks a user object from an organization user so it can be managed as a local user going forward. |
SYSTEM$UNLINK_ORGANIZATION_USER_GROUP | supported | Accounts, users, sessions, warehouses | Unlinks an access control role from an organization user group so it can be managed as a local role going forward. |
SYSTEM$UNMANAGE_ENTITY_FROM_DCM_PROJECTpreview | not supported | Container services & dev tooling | Removes an entity from the management scope of a DCM project without dropping the entity. Managed grants or attachments to the entity remain unchanged. You… |
SYSTEM$UNMANAGE_FROM_DCM_PROJECTpreview | not supported | Container services & dev tooling | Removes entities, grants, and data metric function attachments from the management scope of a DCM project without dropping, revoking, or detaching them. You… |
SYSTEM$UNREGISTER_PRIVATELINK_ENDPOINTBusiness Critical+ | not supported | Integrations, network & secrets | Unregisters a private connectivity endpoint to route your connection to the Snowflake service. |
SYSTEM$UNSET_DEFAULT_COLUMNS_OVERRIDE_FOR_SHOW_COMMAND | supported | Accounts, users, sessions, warehouses | Clears the list of columns specified by a previous call to SYSTEM$SET_DEFAULT_COLUMNS_OVERRIDE_FOR_SHOW_COMMAND for a type of object. |
SYSTEM$UNSET_DEFAULT_COLUMNS_OVERRIDE_FOR_SYSTEM_OBJECT | supported | Accounts, users, sessions, warehouses | Clears the list of columns specified by a previous call to SYSTEM$SET_DEFAULT_COLUMNS_OVERRIDE_FOR_SYSTEM_OBJECT for the specified Snowflake view (for example,… |
SYSTEM$UNSET_EVENT_SHARING_ACCOUNT_FOR_REGION | not supported | Native apps, listings & sharing | Unsets the events account for a region. |
SYSTEM$UNVERIFY_DNS_DOMAIN | not supported | Integrations, network & secrets | Removes a verified domain entry owned by the current account. After the domain is removed, users with email addresses in that domain are no longer treated as… |
SYSTEM$UPDATE_MULTI_PARTY_APPROVAL_JUSTIFICATIONBusiness Critical+ | supported | Governance (policies, tags, data quality) | Submits or updates the business justification for a Multi-party Approval request. Call this function after receiving an MPA_APPROVAL_REQUIRED error to explain… |
SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS | supported | UDFs, procedures, tasks, alerts, scripting | Cancels a run of the specified task that the system has already started to process (that is, a run with an EXECUTING state in the TASK_HISTORY output). |
SYSTEM$VALIDATE_ACCOUNT_DELETION | not supported | Core SQL functions | Returns every condition that blocks dropping an account. The function is read-only: it doesn’t drop the account or change any objects. |
SYSTEM$VALIDATE_CONSUMER_ACCOUNT | not supported | Core SQL functions | Checks whether an account exists and is not a trial account, so that a listing provider can confirm the account is valid before adding it to a listing as a… |
SYSTEM$VALIDATE_STORAGE_INTEGRATION | supported | Integrations, network & secrets | Validates the configuration for a specified storage integration. The function attempts to use the storage integration to write, read, list, or delete a file… |
SYSTEM$VERIFY_CATALOG_INTEGRATION | supported | Iceberg & external tables | Verifies the configuration for a specified catalog integration for Apache Iceberg™ REST. |
SYSTEM$VERIFY_CMK_INFO | not supported | Integrations, network & secrets | Verifies your customer-managed key (CMK) configuration and returns a message about the registered CMK. |
SYSTEM$VERIFY_CMK_INFO_POSTGRES | not supported | Integrations, network & secrets | Verifies your customer-managed key (CMK) configuration for Snowflake Postgres Tri-Secret Secure and returns a message about the registered CMK. |
SYSTEM$VERIFY_CMK_INFO_SNOWFLAKE_MANAGED_VOLUME | not supported | Integrations, network & secrets | Verifies that Snowflake can use your customer-managed key (CMK) for Tri-Secret Secure for Snowflake storage for Iceberg tables, and returns a message about the… |
SYSTEM$VERIFY_DNS_DOMAIN | not supported | Integrations, network & secrets | Registers an email domain for domain verification and returns the DNS TXT record value the account must publish to prove ownership. Subsequent calls for the… |
SYSTEM$VERIFY_EXTERNAL_OAUTH_TOKEN | not supported | Integrations, network & secrets | Determines whether your External OAuth access token is valid or has expired and needs to be regenerated. |
SYSTEM$VERIFY_EXTERNAL_SECRET_INTEGRATIONpreview | not supported | Integrations, network & secrets | Verifies that Snowflake can exchange a workload identity token for cloud credentials and list secrets through an external secret provider integration. |
SYSTEM$VERIFY_EXTERNAL_VOLUME | supported | Iceberg & external tables | Verifies the configuration for a specified external volume. |
SYSTEM$WAIT | supported | Core SQL functions | Waits for the specified amount of time before proceeding. |
SYSTEM$WAIT_FOR_OPENFLOW_CONNECTOR_STATUSpreview | not supported | Container services & dev tooling | Waits until each named connector reaches one of the statuses you specify. Use this function when you know the expected status after an ALTER command. When you… |
SYSTEM$WAIT_FOR_OPENFLOW_DEPLOYMENT_STATUS | not supported | Container services & dev tooling | Waits until each named deployment reaches one of the statuses you specify. Use this function when you know the expected status after an ALTER command. When you… |
SYSTEM$WAIT_FOR_OPENFLOW_RUNTIME_STATUS | not supported | Container services & dev tooling | Waits until each named runtime reaches one of the statuses you specify. Use this function when you know the expected status after an ALTER command. When you… |
SYSTEM$WAIT_FOR_SERVICES | supported | Container services & dev tooling | Waits for one or more Snowpark Container Services services to reach the READY state (or becomes upgraded) before returning. |
SYSTEM$WAIT_FOR_STABLE_OPENFLOW_CONNECTORSpreview | not supported | Container services & dev tooling | Waits until each named connector leaves a transitional state. Gen 2 Openflow commands that change connector state run asynchronously, so call this function… |
SYSTEM$WAIT_FOR_STABLE_OPENFLOW_DEPLOYMENTS | not supported | Container services & dev tooling | Waits until each named deployment leaves a transitional state. Gen 2 Openflow commands that change deployment state run asynchronously, so call this function… |
SYSTEM$WAIT_FOR_STABLE_OPENFLOW_RUNTIMES | not supported | Container services & dev tooling | Waits until each named runtime leaves a transitional state. Gen 2 Openflow commands that change runtime state run asynchronously, so call this function after… |
SYSTEM$ZEROCOPY_CONNECTOR_LIST_SHARES | not supported | Core SQL functions | Lists the data products that a Zero-Copy connector exposes, and shows which of them are already mounted as catalog-linked databases. The output is in JSON… |
SYSTEM$ZEROCOPY_REFRESH_SEMANTIC_VIEW | not supported | Core SQL functions | Regenerates the semantic view in the SNOWFLAKE$ schema of a SAP® BDC catalog-linked database from the current SAP® Core Schema Notation (CSN). |
SYSTEM$ZEROCOPY_SWAP_IMPORTED_DB_WITH_CLD | not supported | Core SQL functions | Exchanges the names of a database that was created from a legacy Salesforce data share and a catalog-linked database that was created from a Salesforce… |
Table functions (103)
| Function | Support | Area | Description |
|---|---|---|---|
ALERT_HISTORY | supported | UDFs, procedures, tasks, alerts, scripting | This INFORMATION_SCHEMA table function can be used to query the history of alerts within a specified date range. The function returns the history of alerts for… |
APPLICATION_CALLBACK_HISTORYpreview | supported | Native apps, listings & sharing | Returns information about the history of callback invocations for Snowflake Native Apps in your Snowflake account. Each row represents a callback invocation,… |
APPLICATION_SPECIFICATION_STATUS_HISTORY | supported | Native apps, listings & sharing | Returns information about the history of the status changes for app specifications in your Snowflake account. |
AUTOMATIC_CLUSTERING_HISTORY | supported | Tables, views, streams, sequences | This table function is used for querying the Automatic Clustering history for given tables within a specified date range. The information returned by the… |
AUTO_REFRESH_REGISTRATION_HISTORY | supported | Iceberg & external tables | This table function can be used to query the history of data files registered in the metadata for a specified external table or directory table and the credits… |
AVAILABLE_LISTINGS | supported | Native apps, listings & sharing | Returns all listings that are available for the consumer to discover and access. |
AVAILABLE_LISTING_REFRESH_HISTORY | supported | Native apps, listings & sharing | Returns the past 14 days of refresh history for an available listing or a database mounted from a listing using cross-cloud auto-fulfillment. The information… |
BIND_VALUES | supported | Queries & DML | This INFORMATION_SCHEMA table function returns information about the values of bind variables used in queries. |
CODE_BUNDLE_HISTORY | supported | Container services & dev tooling | Returns the run history of Code Bundles: one row per run of EXECUTE CODE BUNDLE or EXECUTE NOTEBOOK PROJECT, including anonymous runs (EXECUTE CODE BUNDLE FROM… |
COMPLETE_TASK_GRAPHS | supported | UDFs, procedures, tasks, alerts, scripting | Returns the status of a completed graph run. The function returns details for runs that executed successfully, failed, or were cancelled in the past 60… |
COPY_HISTORY | supported | Data loading & unloading | This table function can be used to query Snowflake data loading history along various dimensions within the last 14 days. The function returns load activity… |
CORTEX_SEARCH_BATCH | supported | AI & ML | This table function submits a batch of queries to a Cortex Search service for high-throughput offline use cases such as entity resolution, deduplication,… |
CORTEX_SEARCH_DATA_SCAN | supported | AI & ML | This table function returns the data indexed by a Cortex Search service, including the columns defined in the source query and the computed vector embeddings… |
CORTEX_SEARCH_REFRESH_HISTORY | supported | AI & ML | This table function returns information about each refresh (completed and running) of Cortex Search services. |
CUMULATIVE_PRIVACY_LOSSESEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the privacy budgets associated with a specific privacy policy. |
CURRENT_TASK_GRAPHS | partial | UDFs, procedures, tasks, alerts, scripting | Returns the status of a graph run that is currently scheduled or is executing. A graph is currently defined as a single scheduled task or a task graph composed… |
DATABASE_REFRESH_HISTORY | supported | Replication, failover & backup | Returns the refresh history for a secondary database. |
DATABASE_REFRESH_PROGRESS | supported | Replication, failover & backup | The DATABASE_REFRESH_PROGRESS family of functions can be used to query the status of a database refresh along various dimensions: |
DATABASE_REFRESH_PROGRESS_BY_JOB | supported | Replication, failover & backup | The DATABASE_REFRESH_PROGRESS family of functions can be used to query the status of a database refresh along various dimensions: |
DATABASE_REPLICATION_USAGE_HISTORY | supported | Replication, failover & backup | This table function can be used to query the replication history for a specified database within a specified date range. The information returned by the… |
DATABASE_STORAGE_USAGE_HISTORY | supported | Databases & schemas | This table function can be used to query the average daily storage usage, in bytes, for a single database (or all the databases in your account) within a… |
DATA_METRIC_FUNCTION_EXPECTATIONSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns information about the expectations that exist in the account. |
DATA_METRIC_FUNCTION_REFERENCESEnterprise+ | supported | Governance (policies, tags, data quality) | Returns a row for each object that has the specified data metric function assigned to the object or returns a row for each data metric function assigned to the… |
DATA_QUALITY_MONITORING_EXPECTATION_STATUSEnterprise+ | supported | Governance (policies, tags, data quality) | For a specified object, returns a row for every time a data metric function (DMF) with an expectation was run. You can obtain the status of the expectation in… |
DATA_QUALITY_MONITORING_RESULTS | supported | Governance (policies, tags, data quality) | Returns a row for each data metric function assigned to the specified object, which includes the evaluation result and other metadata of the data metric… |
DATA_TRANSFER_HISTORY | supported | Replication, failover & backup | This table function can be used to query the history of data transferred from Snowflake tables into a different cloud storage provider’s network (i.e. from… |
DBT_PROJECT_EXECUTION_HISTORY | supported | Container services & dev tooling | Returns the execution history of dbt Projects on Snowflake. |
DYNAMIC_TABLES | supported | Tables, views, streams, sequences | This table function returns metadata about dynamic tables, including aggregate lag metrics and the status of the most recent refreshes, within 7 days of the… |
DYNAMIC_TABLE_GRAPH_HISTORY | supported | Tables, views, streams, sequences | This table function returns information on all dynamic tables in the current account. This information includes the dependencies between dynamic tables and on… |
DYNAMIC_TABLE_REFRESH_HISTORY | supported | Tables, views, streams, sequences | This table function returns information about each refresh (completed and running) of dynamic tables. |
ESTIMATE_HYBRID_TABLE_STORAGE_USAGE | supported | Tables, views, streams, sequences | Returns a near-real-time estimate of the total storage usage, in bytes, of a hybrid table. |
ESTIMATE_REMAINING_DP_AGGREGATESEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the estimated number of aggregation functions that can be run before the limit of a privacy budget is reached. The number of remaining aggregates is… |
EXTERNAL_FUNCTIONS_HISTORY | supported | UDFs, procedures, tasks, alerts, scripting | This table function retrieves the history of external functions called by Snowflake for your entire Snowflake account. |
EXTERNAL_TABLE_FILES | supported | Iceberg & external tables | This table function can be used to query information about the staged data files included in the metadata for a specified external table. |
EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY | supported | Iceberg & external tables | This table function can be used to query information about the metadata history for an external table, including: |
FLATTEN | supported | Core SQL functions | Flattens (explodes) compound values into multiple rows. |
GENERATOR | supported | Core SQL functions | Creates rows of data based either on a specified number of rows, a specified generation period (in seconds), or both. This system-defined table function… |
GET_AI_EVALUATION_DATA | not supported | AI & ML | Retrieves evaluation data for a run for a Cortex Agent or for an External Agent application (see External Agent commands). |
GET_AI_OBSERVABILITY_EVENTS | not supported | AI & ML | Return AI Observability events from the AI_OBSERVABILITY_EVENTS table in the LOCAL schema. Pass an agent type that matches the object you are inspecting: |
GET_AI_OBSERVABILITY_LOGS | not supported | AI & ML | Retrieve log data for an AI Observability event, such as a warning or failure, for a Cortex Agent or an External Agent application (see External Agent… |
GET_AI_RECORD_TRACE | not supported | AI & ML | Retrieve a single trace record from an evaluation run for a Cortex Agent or for an External Agent application that stores traces in AI_OBSERVABILITY_EVENTS… |
GET_CONTACTS | supported | Accounts, users, sessions, warehouses | Returns the contacts associated with an object. |
GET_JOB_HISTORY | supported | Container services & dev tooling | Returns the job history for Snowpark Container Services jobs up to 30 days with an optional time range. The function returns both running and deleted jobs. |
GET_LINEAGEEnterprise+ | not supported | Governance (policies, tags, data quality) | Given a Snowflake object, returns data lineage information upstream or downstream from that object. Upstream means the path of objects that led to the creation… |
GET_OBJECT_REFERENCES | supported | Databases & schemas | Returns a list of objects that a specified object references. Input is currently limited to the name of a view. |
GET_QUERY_OPERATOR_STATS | supported | Queries & DML | Returns statistics about individual query operators within a query that has completed. You can run this function for any completed query that was executed in… |
GET_SPARK_APPLICATION_HISTORY | not supported | Core SQL functions | Returns the history of Snowpark Connect for Spark applications in the account, including batch jobs and client sessions. This is the data that the Spark… |
GET_TABLE_VERSIONSpreview | not supported | Tables, views, streams, sequences | Returns one row for each data snapshot that Snowflake has indexed for an Apache Iceberg™ table. |
GET_TABLE_VERSION_REFSpreview | not supported | Tables, views, streams, sequences | Returns one row for each tag or branch in the Iceberg table metadata that Snowflake has indexed, when the snapshot that the reference points to is present in… |
ICEBERG_TABLE_FILES | supported | Iceberg & external tables | Returns information about the data files registered to an externally managed Apache Iceberg™ table at a specified point in time. |
ICEBERG_TABLE_FILE_REGISTRATION_HISTORYpreview | not supported | Iceberg & external tables | Returns information about the Apache Parquet™ files that Snowflake registered or unregistered for a Parquet Direct table, including the status of each… |
ICEBERG_TABLE_SNAPSHOT_REFRESH_HISTORY | supported | Iceberg & external tables | Returns metadata and snapshot information about the most recent refresh history for a specified externally managed Apache Iceberg™ table. |
INFER_SCHEMA | partial | Data loading & unloading | Automatically detects the file metadata schema in a set of staged data files that contain semi-structured data and retrieves the column definitions. |
LISTING_REFRESH_HISTORY | supported | Native apps, listings & sharing | Returns the past 14 days of refresh history for a cross-cloud auto-fulfillment listing. The information returned contains replication details for refresh… |
LOGIN_HISTORY | supported | Accounts, users, sessions, warehouses | The LOGIN_HISTORY family of table functions can be used to query login attempts by Snowflake users along various dimensions: |
LOGIN_HISTORY_BY_USER | supported | Accounts, users, sessions, warehouses | The LOGIN_HISTORY family of table functions can be used to query login attempts by Snowflake users along various dimensions: |
MATERIALIZED_VIEW_REFRESH_HISTORYEnterprise+ | supported | Tables, views, streams, sequences | This table function is used for querying the materialized views refresh history for a specified materialized view within a specified date range. The… |
MY_BUDGET_SUMMARY | supported | Accounts, users, sessions, warehouses | Returns the calling user’s limits, usage, and current block status for each per-user quota that applies to them in the current account. |
NETWORK_RULE_REFERENCES | supported | Integrations, network & secrets | Returns a row for each object with which the specified network rule is associated or returns a row for each network rule associated with the specified… |
NOTIFICATION_HISTORY | supported | Integrations, network & secrets | This table function can be used to query the history of notifications sent through Snowflake. These notifications include: |
ONLINE_FEATURE_TABLE_REFRESH_HISTORY | supported | AI & ML | This table function returns information about each refresh (completed and running) of online feature tables. |
PIPE_USAGE_HISTORY | supported | Data loading & unloading | This table function can be used to query the history of data loaded into Snowflake tables using Snowpipe within a specified date range. The function returns… |
POLICY_REFERENCES | supported | Governance (policies, tags, data quality) | Returns a row for each object that has the specified policy assigned to the object or returns a row for each policy assigned to the specified object. |
QUERY_ACCELERATION_HISTORYEnterprise+ | supported | Queries & DML | The QUERY_ACCELERATION_HISTORY function is used for querying the query acceleration service history within a specified date range. The information returned… |
QUERY_HISTORY | supported | Queries & DML | You can use the QUERY_HISTORY family of table functions to query Snowflake query history along various dimensions: |
QUERY_HISTORY_BY_SESSION | supported | Queries & DML | You can use the QUERY_HISTORY family of table functions to query Snowflake query history along various dimensions: |
QUERY_HISTORY_BY_USER | supported | Queries & DML | You can use the QUERY_HISTORY family of table functions to query Snowflake query history along various dimensions: |
QUERY_HISTORY_BY_WAREHOUSE | supported | Queries & DML | You can use the QUERY_HISTORY family of table functions to query Snowflake query history along various dimensions: |
REPLICATION_GROUP_DANGLING_REFERENCESBusiness Critical+ | supported | Replication, failover & backup | Detects cases where an object that’s referenced in a replication group or failover group isn’t actually replicated to the secondary account. Snowflake refers… |
REPLICATION_GROUP_LAG_HISTORYBusiness Critical+ | partial | Replication, failover & backup | Returns the replication lag history for a secondary failover group over a time window. The results show how the replication lag for the group changed over… |
REPLICATION_GROUP_REFRESH_HISTORYBusiness Critical+ | supported | Replication, failover & backup | You can use the REPLICATION_GROUP_REFRESH_HISTORY family of table functions to query the replication history for one secondary replication or failover group,… |
REPLICATION_GROUP_REFRESH_HISTORY_ALLBusiness Critical+ | supported | Replication, failover & backup | You can use the REPLICATION_GROUP_REFRESH_HISTORY family of table functions to query the replication history for one secondary replication or failover group,… |
REPLICATION_GROUP_REFRESH_PROGRESSBusiness Critical+ | supported | Replication, failover & backup | You can use the REPLICATION_GROUP_REFRESH_PROGRESS family of table functions to query the status of refresh operations for replication or failover groups: |
REPLICATION_GROUP_REFRESH_PROGRESS_ALLBusiness Critical+ | supported | Replication, failover & backup | You can use the REPLICATION_GROUP_REFRESH_PROGRESS family of table functions to query the status of refresh operations for replication or failover groups: |
REPLICATION_GROUP_REFRESH_PROGRESS_BY_JOBBusiness Critical+ | supported | Replication, failover & backup | You can use the REPLICATION_GROUP_REFRESH_PROGRESS family of table functions to query the status of refresh operations for replication or failover groups: |
REPLICATION_GROUP_USAGE_HISTORYBusiness Critical+ | supported | Replication, failover & backup | Returns the replication usage history for secondary replication or failover groups within the last 14 days. |
REPLICATION_USAGE_HISTORYdeprecated | supported | Replication, failover & backup | This table function can be used to query the replication history for a specified database within a specified date range. The information returned by the… |
REST_EVENT_HISTORY | partial | Integrations, network & secrets | Returns a list of SCIM REST API requests made to Snowflake over a specified time interval. |
RESULT_SCAN | supported | Queries & DML | Returns the result set of a previous command (within 24 hours of when you ran the query) as if the result was a table. This function is particularly useful if… |
SEARCH_OPTIMIZATION_HISTORYEnterprise+ | supported | Tables, views, streams, sequences | This table function is used for querying maintenance history for indexes maintained by the search optimization service for a specified table within a specified… |
SEMANTIC_VIEW_MATERIALIZATION_REFRESH_HISTORY | supported | AI & ML | Returns the refresh history for a semantic view materialization, including the state, timing, and action taken for each refresh. |
SERVERLESS_ALERT_HISTORY | supported | UDFs, procedures, tasks, alerts, scripting | This table function is used for querying the serverless alert usage history. The information returned by the function includes the alert name and credits… |
SERVERLESS_TASK_HISTORY | supported | UDFs, procedures, tasks, alerts, scripting | This table function is used for querying the serverless task usage history. The information returned by the function includes the task name and credits… |
SPLIT_TO_TABLE | supported | Core SQL functions | This table function splits a string (based on a specified delimiter) and flattens the results into rows. |
STAGE_DIRECTORY_FILE_REGISTRATION_HISTORY | supported | Data loading & unloading | This table function can be used to query information about the metadata history for a directory table, including: |
STAGE_STORAGE_USAGE_HISTORY | supported | Data loading & unloading | This table function can be used to query the average daily data storage usage, in bytes, for all the Snowflake stages in your account within a specified date… |
STORAGE_LIFECYCLE_POLICY_HISTORY | supported | Governance (policies, tags, data quality) | Returns execution history for storage lifecycle policies in your account within the last 14 days. |
STRTOK_SPLIT_TO_TABLE | supported | Core SQL functions | Tokenizes a string with the given set of delimiters and flattens the results into rows. |
SYSTEM$DATA_METRIC_SCANEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the rows identified by a data quality metric as containing data that fails a data quality check. For example, if you use the NULL_COUNT data metric… |
SYSTEM$EVALUATE_DATA_QUALITY_EXPECTATIONSEnterprise+ | supported | Governance (policies, tags, data quality) | Returns the expectations for associations between data metric functions (DMFs) and a table, including whether an expectation is currently violated. |
SYSTEM$EVALUATE_DATA_QUALITY_EXPECTATIONS_PERSIST_RESULTEnterprise+ | supported | Governance (policies, tags, data quality) | Evaluates data quality expectations for associations between data metric functions (DMFs) and a table and persists the results to the… |
SYSTEM$STREAM_BACKLOG | supported | Tables, views, streams, sequences | Returns the set of table versions between the current offset for a specified stream and the current timestamp. This function accepts any stream type as input… |
TAG_REFERENCES | supported | Governance (policies, tags, data quality) | Returns a table in which each row displays an association between a tag and value. |
TAG_REFERENCES_ALL_COLUMNS | supported | Governance (policies, tags, data quality) | Returns a table in which each row displays the tag name and tag value assigned to a specific column. |
TAG_REFERENCES_WITH_LINEAGE | supported | Governance (policies, tags, data quality) | Returns a table in which each row displays an association between the specified tag and the Snowflake object to which the tag is associated. |
TASK_DEPENDENTS | supported | UDFs, procedures, tasks, alerts, scripting | This table function returns the list of child tasks for a given root task in a task graph. |
TASK_GRAPH_CHANGESpreview | not supported | UDFs, procedures, tasks, alerts, scripting | This table function previews the uncommitted changes for a task graph object — the difference between the live (possibly-staged) definition of the graph and… |
TASK_HISTORY | supported | UDFs, procedures, tasks, alerts, scripting | You can use this table function to query the history of task usage within a specified date range. The function returns the history of task usage for your… |
TO_QUERY | supported | Queries & DML | Returns a result set based on SQL text and an optional set of arguments that are passed to the SQL text if it is parameterized. The function compiles the SQL… |
VALIDATE | supported | Data loading & unloading | Validates the files loaded in a past execution of the COPY INTO <table> command and returns the errors encountered during the load, rather than just the first… |
VALIDATE_PIPE_LOAD | supported | Data loading & unloading | This table function can be used to validate data files processed by Snowpipe within a specified time range. The function returns details about any errors… |
WAREHOUSE_LOAD_HISTORY | supported | Accounts, users, sessions, warehouses | This table function can be used to query the activity history (defined as the “query load”) for a single warehouse within a specified date range. |
WAREHOUSE_METERING_HISTORY | supported | Accounts, users, sessions, warehouses | This table function can be used in queries to return the hourly credit usage for a single warehouse (or all the warehouses in your account) within a specified… |
Table functions (Tables) (1)
| Function | Support | Area | Description |
|---|---|---|---|
APPLICATION_CONFIGURATION_VALUE_HISTORY | supported | Native apps, listings & sharing | Provides a history of the value changes for application configurations in the specified Snowflake Native App. |
Uncategorized (1)
| Function | Support | Area | Description |
|---|---|---|---|
GENERATE_POSTGRES_ACCESS_TOKEN_FOR_USER | supported | Container services & dev tooling | Generates a short-lived access token to use as a password when logging into a Snowflake Postgres instance that has the AUTHENTICATION_AUTHORITY attribute set… |
Vector functions (10)
| Function | Support | Area | Description |
|---|---|---|---|
VECTOR_AVG | supported | AI & ML | Computes the element-wise average of vectors in an aggregate. Returns a vector where each element is the average of the corresponding elements across all input… |
VECTOR_COSINE_SIMILARITY | supported | AI & ML | Computes the cosine similarity between two vectors. |
VECTOR_INNER_PRODUCT | supported | AI & ML | Computes the inner product of two vectors. |
VECTOR_L1_DISTANCE | supported | AI & ML | Computes the L1 distance between two vectors. |
VECTOR_L2_DISTANCE | supported | AI & ML | Computes the L2 distance between two vectors. |
VECTOR_MAX | supported | AI & ML | Computes the element-wise maximum of vectors in an aggregate. Returns a vector where each element is the maximum of the corresponding elements across all input… |
VECTOR_MIN | supported | AI & ML | Computes the element-wise minimum of vectors in an aggregate. Returns a vector where each element is the minimum of the corresponding elements across all input… |
VECTOR_NORMALIZE | supported | AI & ML | Normalizes a VECTOR in the L2 vector space, giving its elements values in the range of [0,1] and giving it a magnitude of 1. |
VECTOR_SUM | supported | AI & ML | Computes the element-wise sum of vectors in an aggregate. Returns a vector where each element is the sum of the corresponding elements across all input vectors. |
VECTOR_TRUNCATE | partial | AI & ML | Truncates a VECTOR to a smaller dimension. |
Window function syntax and usage (36)
| Function | Support | Area | Description |
|---|---|---|---|
APPROXIMATE_SIMILARITY | supported | Core SQL functions | Returns an estimation of the similarity (Jaccard index) of inputs based on their MinHash states. For more information about MinHash states, see Estimating… |
APPROX_PERCENTILE_ACCUMULATE | supported | Core SQL functions | Returns the internal representation of the t-Digest state (as a JSON object) at the end of aggregation. (For more information about t-Digest, see: Estimating… |
APPROX_PERCENTILE_COMBINE | supported | Core SQL functions | Combines (merges) percentile input states into a single output state. |
APPROX_PERCENTILE_ESTIMATE | supported | Core SQL functions | Returns the desired approximated percentile value for the specified t-Digest state. |
APPROX_TOP_K_ACCUMULATE | supported | Core SQL functions | Returns the Space-Saving summary at the end of aggregation. (For more information about the Space-Saving summary, see Estimating Frequent Values.) |
APPROX_TOP_K_COMBINE | supported | Core SQL functions | Combines (merges) input states into a single output state. |
APPROX_TOP_K_ESTIMATE | supported | Core SQL functions | Returns the approximate most frequent values and their estimated frequency for the given Space-Saving state. (For more information about the Space-Saving… |
DATASKETCHES_HLL_ACCUMULATE | supported | Core SQL functions | Returns the sketch at the end of aggregation. |
DATASKETCHES_HLL_COMBINE | supported | Core SQL functions | Combines (merges) input sketches into a single output sketch. |
DATASKETCHES_HLL_ESTIMATE | supported | Core SQL functions | Returns the cardinality estimate for the given sketch. |
DENSE_RANK | supported | Core SQL functions | Returns the rank of a value within a group of values, without gaps in the ranks. |
FIRST_VALUE | supported | Core SQL functions | Returns the first value within an ordered group of values. |
KURTOSIS | supported | Core SQL functions | Returns the sample excess kurtosis of non-NULL records. If all records inside a group are NULL, the function returns NULL. |
LAG | supported | Core SQL functions | Accesses data in a previous row in the same result set without having to join the table to itself. |
LAST_VALUE | supported | Core SQL functions | Returns the last value within an ordered group of values. |
LEAD | supported | Core SQL functions | Accesses data in a subsequent row in the same result set without having to join the table to itself. |
LISTAGG | supported | Core SQL functions | Returns the concatenated input values, separated by the delimiter string. |
NTH_VALUE | supported | Core SQL functions | Returns the nth value (up to 1000) within an ordered group of values. |
NTILE | supported | Core SQL functions | Divides an ordered data set equally into the number of buckets specified by constant_value. Buckets are sequentially numbered 1 through constant_value. |
REGR_COUNT | supported | Core SQL functions | Returns the number of non-null number pairs in a group. |
REGR_INTERCEPT | supported | Core SQL functions | Returns the intercept of the univariate linear regression line for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
REGR_R2 | supported | Core SQL functions | Returns the coefficient of determination for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
REGR_SLOPE | supported | Core SQL functions | Returns the slope of the linear regression line for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
REGR_SXX | supported | Core SQL functions | Returns REGR_COUNT(y, x) * VAR_POP(x) for non-null pairs. |
REGR_SXY | supported | Core SQL functions | Returns REGR_COUNT(expr1, expr2) * COVAR_POP(expr1, expr2) for non-null pairs. |
REGR_SYY | supported | Core SQL functions | Returns REGR_COUNT(y, x) * VAR_POP(y) for non-null pairs. |
ROW_NUMBER | supported | Core SQL functions | Returns a unique row number for each row within a window partition. |
STDDEV | supported | Core SQL functions | Returns the sample standard deviation (square root of sample variance) of non-NULL values. STDDEV and STDDEV_SAMP are aliases for the same function. |
STDDEV_POP | supported | Core SQL functions | Returns the population standard deviation (square root of variance) of non-NULL values. |
STDDEV_SAMP | supported | Core SQL functions | Returns the sample standard deviation (square root of sample variance) of non-NULL values. STDDEV and STDDEV_SAMP are aliases for the same function. |
SUM | supported | Core SQL functions | Returns the sum of non-NULL records for expr. You can use the DISTINCT keyword to compute the sum of unique non-null values. If all records inside a group are… |
VARIANCE | supported | Core SQL functions | Returns the sample variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. |
VARIANCE_POP | supported | Core SQL functions | Returns the population variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. |
VARIANCE_SAMP | supported | Core SQL functions | Returns the sample variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. |
VAR_POP | supported | Core SQL functions | Returns the population variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. |
VAR_SAMP | supported | Core SQL functions | Returns the sample variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. |
Window functions (48)
| Function | Support | Area | Description |
|---|---|---|---|
ANY_VALUE | supported | Core SQL functions | Returns some value of the expression from the group. The result is non-deterministic. |
APPROXIMATE_JACCARD_INDEX | supported | Core SQL functions | Returns an estimation of the similarity (Jaccard index) of inputs based on their MinHash states. For more information about Jaccard indexes and the related… |
APPROX_COUNT_DISTINCT | supported | Core SQL functions | Uses HyperLogLog to return an approximation of the distinct cardinality of the input (i.e. HLL(col1, col2, ... ) returns an approximation of COUNT(DISTINCT… |
APPROX_PERCENTILE | supported | Core SQL functions | Returns an approximated value for the desired percentile (that is, if column c has n numbers, APPROX_PERCENTILE(c, p) returns a number such that approximately… |
APPROX_TOP_K | supported | Core SQL functions | Uses Space-Saving to return an approximation of the most frequent values in the input, along with their approximate frequencies. |
ARRAY_AGG | supported | Core SQL functions | Returns the input values, pivoted into an array. If the input is empty, the function returns an empty array. |
ARRAY_UNION_AGG | supported | Core SQL functions | Returns an ARRAY that contains the union of the distinct values from the input arrays in a column. You can use this to aggregate distinct values in arrays… |
ARRAY_UNIQUE_AGG | supported | Core SQL functions | Returns an ARRAY that contains all of the distinct values from the specified column. |
AVG | supported | Core SQL functions | Returns the average of non-NULL records. If all records inside a group are NULL, the function returns NULL. |
BITAND_AGG | supported | Core SQL functions | Returns the bitwise AND value of all non-NULL numeric records in a group. |
BITOR_AGG | supported | Core SQL functions | Returns the bitwise OR value of all non-NULL numeric records in a group. |
BITXOR_AGG | supported | Core SQL functions | Returns the bitwise XOR value of all non-NULL numeric records in a group. |
BOOLAND_AGG | supported | Core SQL functions | Returns TRUE if all non-NULL Boolean records in a group evaluate to TRUE. |
BOOLOR_AGG | supported | Core SQL functions | Returns TRUE if at least one Boolean record in a group evaluates to TRUE. |
BOOLXOR_AGG | supported | Core SQL functions | Returns TRUE if exactly one Boolean record in the group evaluates to TRUE. |
CONDITIONAL_CHANGE_EVENT | supported | Core SQL functions | Returns a window event number for each row within a window partition when the value of the argument expr1 in the current row is different from the value of… |
CONDITIONAL_TRUE_EVENT | supported | Core SQL functions | Returns a window event number for each row within a window partition based on the result of the boolean argument expr1. The number starts from 0 and is… |
CORR | supported | Core SQL functions | Returns the correlation coefficient for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
COUNT | supported | Core SQL functions | Returns either the number of non-NULL records for the specified columns, or the total number of records. |
COUNT_IF | supported | Core SQL functions | Returns the number of records that satisfy a condition or NULL if no records satisfy the condition. |
COVAR_POP | supported | Core SQL functions | Returns the population covariance for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
COVAR_SAMP | supported | Core SQL functions | Returns the sample covariance for non-null pairs in a group. It is computed for non-null pairs using the following formula: |
CUME_DIST | supported | Core SQL functions | Finds the cumulative distribution of a value with regard to other values within the same window partition. |
DATASKETCHES_HLL | supported | Core SQL functions | Returns an approximation of the distinct cardinality of the input (that is, DATASKETCHES_HLL(col1) returns an approximation of COUNT(DISTINCT col1)). |
HASH_AGG | supported | Core SQL functions | Returns an aggregate signed 64-bit hash value over the (unordered) set of input rows. HASH_AGG never returns NULL, even if no input is provided. Empty input… |
HLL | supported | Core SQL functions | Uses HyperLogLog to return an approximation of the distinct cardinality of the input (i.e. HLL(col1, col2, ... ) returns an approximation of COUNT(DISTINCT… |
HLL_ACCUMULATE | supported | Core SQL functions | Returns the HyperLogLog state at the end of aggregation. |
HLL_COMBINE | supported | Core SQL functions | Combines (merges) input states into a single output state. |
HLL_ESTIMATE | supported | Core SQL functions | Returns the cardinality estimate for the given HyperLogLog state. |
HLL_EXPORT | supported | Core SQL functions | Converts input in BINARY format to OBJECT format. |
HLL_IMPORT | supported | Core SQL functions | Converts input in OBJECT format to BINARY format. |
INTERPOLATE_BFILLpreview | supported | Core SQL functions | Updates rows in a time-series data set to gap-fill missing values based on surrounding values. |
INTERPOLATE_FFILLpreview | supported | Core SQL functions | Updates rows in a time-series data set to gap-fill missing values based on surrounding values. |
INTERPOLATE_LINEARpreview | supported | Core SQL functions | Updates rows in a time-series data set to gap-fill missing values based on surrounding values. |
MAX | supported | Core SQL functions | Returns the maximum value for the records within expr. NULL values are ignored unless all the records are NULL, in which case a NULL value is returned. |
MEDIAN | supported | Core SQL functions | Determines the median of a set of values. |
MIN | supported | Core SQL functions | Returns the minimum value for the records within expr. NULL values are ignored unless all the records are NULL, in which case a NULL value is returned. |
MINHASH | supported | Core SQL functions | Returns a MinHash state containing an array of size k constructed by applying k number of different hash functions to the input rows and keeping the minimum of… |
MINHASH_COMBINE | supported | Core SQL functions | Combines input MinHash states into a single MinHash output state. This Minhash state can then be input to the APPROXIMATE_SIMILARITY function to estimate the… |
MODE | supported | Core SQL functions | Returns the most frequent value for the values within expr1. NULL values are ignored. If all the values are NULL, or there are 0 rows, then the function… |
OBJECT_AGG | supported | Core SQL functions | Returns one OBJECT per group. For each (key, value) input pair, where key must be a VARCHAR and value must be a VARIANT, the resulting OBJECT contains a… |
PERCENTILE_CONT | supported | Core SQL functions | Return a percentile value based on a continuous distribution of the input column (specified in order_by_expr). If no input row lies exactly at the desired… |
PERCENTILE_DISC | supported | Core SQL functions | Returns a percentile value based on a discrete distribution of the input column (specified in order_by_expr). The returned value is that whose row has the… |
PERCENT_RANK | supported | Core SQL functions | Returns the relative rank of a value within a group of values, specified as a percentage ranging from 0.0 to 1.0. |
RANK | supported | Core SQL functions | Returns the rank of a value within an ordered group of values. |
RATIO_TO_REPORT | supported | Core SQL functions | Returns the ratio of a value within a group to the sum of the values within the group. If expr1 evaluates to null or the sum of expr1 within the group… |
REGR_AVGX | supported | Core SQL functions | Returns the average of the independent variable for non-null pairs in a group, where x is the independent variable and y is the dependent variable. |
REGR_AVGY | supported | Core SQL functions | Returns the average of the dependent variable for non-null pairs in a group, where x is the independent variable and y is the dependent variable. |
Not in the SQL reference (44)
| Name | Support | Area | Signatures |
|---|---|---|---|
BIT_AND | supported | Other | (ANY, ANY) → NUMBER(BINARY, BINARY) → BINARY(DECFLOAT, DECFLOAT) → NUMBER(NUMBER, NUMBER) → NUMBER(BINARY, BINARY, ANY) → BINARY(BINARY, BINARY, BOOLEAN) → BINARY(BINARY, BINARY, DECFLOAT) → BINARY(BINARY, BINARY, FLOAT) → BINARY(BINARY, BINARY, NUMBER) → BINARY(BINARY, BINARY, VARCHAR) → BINARY(BINARY, BINARY, VARIANT) → BINARY |
BIT_NOT | supported | Other | (NUMBER) → NUMBER |
BIT_OR | supported | Other | (ANY, ANY) → NUMBER(BINARY, BINARY) → BINARY(NUMBER, NUMBER) → NUMBER(BINARY, BINARY, ANY) → BINARY(BINARY, BINARY, BOOLEAN) → BINARY(BINARY, BINARY, DECFLOAT) → BINARY(BINARY, BINARY, FLOAT) → BINARY(BINARY, BINARY, NUMBER) → BINARY(BINARY, BINARY, VARCHAR) → BINARY(BINARY, BINARY, VARIANT) → BINARY |
BIT_SHIFTLEFT | supported | Other | (NUMBER, NUMBER) → NUMBER |
BIT_SHIFTRIGHT | supported | Other | (NUMBER, NUMBER) → NUMBER |
BIT_XOR | supported | Other | (ANY, ANY) → NUMBER(BINARY, BINARY) → BINARY(NUMBER, NUMBER) → NUMBER(BINARY, BINARY, ANY) → BINARY(BINARY, BINARY, BOOLEAN) → BINARY(BINARY, BINARY, DECFLOAT) → BINARY(BINARY, BINARY, FLOAT) → BINARY(BINARY, BINARY, NUMBER) → BINARY(BINARY, BINARY, VARCHAR) → BINARY(BINARY, BINARY, VARIANT) → BINARY |
CURRENT_TIMESTAMP_LTZ | supported | Other | () → TIMESTAMP_LTZ |
NO_PRIVACY_POLICY | supported | Other | () → OBJECT |
NTH_VALUE_FROM_LAST | supported | Other | (ANY, NUMBER) → ANY |
OBJECTAGG | supported | Other | (VARCHAR, VARIANT) |
PRIVACY_BUDGET | supported | Other | (VARCHAR, FLOAT, FLOAT, VARCHAR) → OBJECT |
ST_GEOGFROMEWKB | supported | Other | (ANY) → GEOGRAPHY(BINARY) → GEOGRAPHY(VARCHAR) → GEOGRAPHY(ANY, ANY) → GEOGRAPHY(BINARY, BOOLEAN) → GEOGRAPHY(VARCHAR, BOOLEAN) → GEOGRAPHY |
ST_GEOGFROMEWKT | supported | Other | (ANY) → GEOGRAPHY(VARCHAR) → GEOGRAPHY(ANY, ANY) → GEOGRAPHY(VARCHAR, BOOLEAN) → GEOGRAPHY |
ST_GEOGFROMTEXT | supported | Other | (ANY) → GEOGRAPHY(VARCHAR) → GEOGRAPHY(ANY, ANY) → GEOGRAPHY(VARCHAR, BOOLEAN) → GEOGRAPHY |
ST_GEOGFROMWKB | supported | Other | (ANY) → GEOGRAPHY(BINARY) → GEOGRAPHY(VARCHAR) → GEOGRAPHY(ANY, ANY) → GEOGRAPHY(BINARY, BOOLEAN) → GEOGRAPHY(VARCHAR, BOOLEAN) → GEOGRAPHY |
ST_GEOGFROMWKT | supported | Other | (ANY) → GEOGRAPHY(VARCHAR) → GEOGRAPHY(ANY, ANY) → GEOGRAPHY(VARCHAR, BOOLEAN) → GEOGRAPHY |
ST_GEOGRAPHYFROMEWKB | supported | Other | (ANY) → GEOGRAPHY(BINARY) → GEOGRAPHY(VARCHAR) → GEOGRAPHY(ANY, ANY) → GEOGRAPHY(BINARY, BOOLEAN) → GEOGRAPHY(VARCHAR, BOOLEAN) → GEOGRAPHY |
ST_GEOGRAPHYFROMEWKT | supported | Other | (ANY) → GEOGRAPHY(VARCHAR) → GEOGRAPHY(ANY, ANY) → GEOGRAPHY(VARCHAR, BOOLEAN) → GEOGRAPHY |
ST_GEOGRAPHYFROMTEXT | supported | Other | (ANY) → GEOGRAPHY(VARCHAR) → GEOGRAPHY(ANY, ANY) → GEOGRAPHY(VARCHAR, BOOLEAN) → GEOGRAPHY |
ST_GEOMETRYFROMEWKB | supported | Other | (ANY) → GEOMETRY(BINARY) → GEOMETRY(VARCHAR) → GEOMETRY(ANY, ANY) → GEOMETRY(BINARY, BOOLEAN) → GEOMETRY(BINARY, DATE) → GEOMETRY(BINARY, FLOAT) → GEOMETRY(BINARY, NUMBER) → GEOMETRY(BINARY, TIME) → GEOMETRY(BINARY, TIMESTAMP_LTZ) → GEOMETRY(BINARY, TIMESTAMP_NTZ) → GEOMETRY(BINARY, TIMESTAMP_TZ) → GEOMETRY(BINARY, VARCHAR) → GEOMETRY(BINARY, VARIANT) → GEOMETRY(VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, DATE) → GEOMETRY(VARCHAR, FLOAT) → GEOMETRY(VARCHAR, NUMBER) → GEOMETRY(VARCHAR, TIME) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ) → GEOMETRY(VARCHAR, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, VARCHAR) → GEOMETRY(VARCHAR, VARIANT) → GEOMETRY(ANY, ANY, ANY) → GEOMETRY(BINARY, BOOLEAN, BOOLEAN) → GEOMETRY(BINARY, DATE, BOOLEAN) → GEOMETRY(BINARY, FLOAT, BOOLEAN) → GEOMETRY(BINARY, NUMBER, BOOLEAN) → GEOMETRY(BINARY, TIME, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(BINARY, VARCHAR, BOOLEAN) → GEOMETRY(BINARY, VARIANT, BOOLEAN) → GEOMETRY(VARCHAR, BOOLEAN, BOOLEAN) → GEOMETRY(VARCHAR, DATE, BOOLEAN) → GEOMETRY(VARCHAR, FLOAT, BOOLEAN) → GEOMETRY(VARCHAR, NUMBER, BOOLEAN) → GEOMETRY(VARCHAR, TIME, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, VARIANT, BOOLEAN) → GEOMETRY(ANY, ANY, ANY, ANY) → GEOMETRY(BINARY, NUMBER, BOOLEAN, NUMBER) → GEOMETRY(VARCHAR, NUMBER, BOOLEAN, NUMBER) → GEOMETRY |
ST_GEOMETRYFROMEWKT | supported | Other | (ANY) → GEOMETRY(VARCHAR) → GEOMETRY(ANY, ANY) → GEOMETRY(BINARY, DATE) → GEOMETRY(BINARY, TIME) → GEOMETRY(BINARY, TIMESTAMP_LTZ) → GEOMETRY(BINARY, TIMESTAMP_NTZ) → GEOMETRY(BINARY, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, DATE) → GEOMETRY(VARCHAR, FLOAT) → GEOMETRY(VARCHAR, NUMBER) → GEOMETRY(VARCHAR, TIME) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ) → GEOMETRY(VARCHAR, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, VARCHAR) → GEOMETRY(VARCHAR, VARIANT) → GEOMETRY(ANY, ANY, ANY) → GEOMETRY(BINARY, DATE, BOOLEAN) → GEOMETRY(BINARY, TIME, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, BOOLEAN, BOOLEAN) → GEOMETRY(VARCHAR, DATE, BOOLEAN) → GEOMETRY(VARCHAR, FLOAT, BOOLEAN) → GEOMETRY(VARCHAR, NUMBER, BOOLEAN) → GEOMETRY(VARCHAR, TIME, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, VARIANT, BOOLEAN) → GEOMETRY |
ST_GEOMETRYFROMTEXT | supported | Other | (ANY) → GEOMETRY(VARCHAR) → GEOMETRY(ANY, ANY) → GEOMETRY(BINARY, DATE) → GEOMETRY(BINARY, TIME) → GEOMETRY(BINARY, TIMESTAMP_LTZ) → GEOMETRY(BINARY, TIMESTAMP_NTZ) → GEOMETRY(BINARY, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, DATE) → GEOMETRY(VARCHAR, FLOAT) → GEOMETRY(VARCHAR, NUMBER) → GEOMETRY(VARCHAR, TIME) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ) → GEOMETRY(VARCHAR, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, VARCHAR) → GEOMETRY(VARCHAR, VARIANT) → GEOMETRY(ANY, ANY, ANY) → GEOMETRY(BINARY, DATE, BOOLEAN) → GEOMETRY(BINARY, TIME, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, BOOLEAN, BOOLEAN) → GEOMETRY(VARCHAR, DATE, BOOLEAN) → GEOMETRY(VARCHAR, FLOAT, BOOLEAN) → GEOMETRY(VARCHAR, NUMBER, BOOLEAN) → GEOMETRY(VARCHAR, TIME, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, VARIANT, BOOLEAN) → GEOMETRY |
ST_GEOMFROMEWKB | supported | Other | (ANY) → GEOMETRY(BINARY) → GEOMETRY(VARCHAR) → GEOMETRY(ANY, ANY) → GEOMETRY(BINARY, BOOLEAN) → GEOMETRY(BINARY, DATE) → GEOMETRY(BINARY, FLOAT) → GEOMETRY(BINARY, NUMBER) → GEOMETRY(BINARY, TIME) → GEOMETRY(BINARY, TIMESTAMP_LTZ) → GEOMETRY(BINARY, TIMESTAMP_NTZ) → GEOMETRY(BINARY, TIMESTAMP_TZ) → GEOMETRY(BINARY, VARCHAR) → GEOMETRY(BINARY, VARIANT) → GEOMETRY(VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, DATE) → GEOMETRY(VARCHAR, FLOAT) → GEOMETRY(VARCHAR, NUMBER) → GEOMETRY(VARCHAR, TIME) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ) → GEOMETRY(VARCHAR, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, VARCHAR) → GEOMETRY(VARCHAR, VARIANT) → GEOMETRY(ANY, ANY, ANY) → GEOMETRY(BINARY, BOOLEAN, BOOLEAN) → GEOMETRY(BINARY, DATE, BOOLEAN) → GEOMETRY(BINARY, FLOAT, BOOLEAN) → GEOMETRY(BINARY, NUMBER, BOOLEAN) → GEOMETRY(BINARY, TIME, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(BINARY, VARCHAR, BOOLEAN) → GEOMETRY(BINARY, VARIANT, BOOLEAN) → GEOMETRY(VARCHAR, BOOLEAN, BOOLEAN) → GEOMETRY(VARCHAR, DATE, BOOLEAN) → GEOMETRY(VARCHAR, FLOAT, BOOLEAN) → GEOMETRY(VARCHAR, NUMBER, BOOLEAN) → GEOMETRY(VARCHAR, TIME, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, VARIANT, BOOLEAN) → GEOMETRY(ANY, ANY, ANY, ANY) → GEOMETRY(BINARY, NUMBER, BOOLEAN, NUMBER) → GEOMETRY(VARCHAR, NUMBER, BOOLEAN, NUMBER) → GEOMETRY |
ST_GEOMFROMEWKT | supported | Other | (ANY) → GEOMETRY(VARCHAR) → GEOMETRY(ANY, ANY) → GEOMETRY(BINARY, DATE) → GEOMETRY(BINARY, TIME) → GEOMETRY(BINARY, TIMESTAMP_LTZ) → GEOMETRY(BINARY, TIMESTAMP_NTZ) → GEOMETRY(BINARY, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, DATE) → GEOMETRY(VARCHAR, FLOAT) → GEOMETRY(VARCHAR, NUMBER) → GEOMETRY(VARCHAR, TIME) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ) → GEOMETRY(VARCHAR, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, VARCHAR) → GEOMETRY(VARCHAR, VARIANT) → GEOMETRY(ANY, ANY, ANY) → GEOMETRY(BINARY, DATE, BOOLEAN) → GEOMETRY(BINARY, TIME, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, BOOLEAN, BOOLEAN) → GEOMETRY(VARCHAR, DATE, BOOLEAN) → GEOMETRY(VARCHAR, FLOAT, BOOLEAN) → GEOMETRY(VARCHAR, NUMBER, BOOLEAN) → GEOMETRY(VARCHAR, TIME, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, VARIANT, BOOLEAN) → GEOMETRY |
ST_GEOMFROMTEXT | supported | Other | (ANY) → GEOMETRY(VARCHAR) → GEOMETRY(ANY, ANY) → GEOMETRY(BINARY, DATE) → GEOMETRY(BINARY, TIME) → GEOMETRY(BINARY, TIMESTAMP_LTZ) → GEOMETRY(BINARY, TIMESTAMP_NTZ) → GEOMETRY(BINARY, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, DATE) → GEOMETRY(VARCHAR, FLOAT) → GEOMETRY(VARCHAR, NUMBER) → GEOMETRY(VARCHAR, TIME) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ) → GEOMETRY(VARCHAR, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, VARCHAR) → GEOMETRY(VARCHAR, VARIANT) → GEOMETRY(ANY, ANY, ANY) → GEOMETRY(BINARY, DATE, BOOLEAN) → GEOMETRY(BINARY, TIME, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, BOOLEAN, BOOLEAN) → GEOMETRY(VARCHAR, DATE, BOOLEAN) → GEOMETRY(VARCHAR, FLOAT, BOOLEAN) → GEOMETRY(VARCHAR, NUMBER, BOOLEAN) → GEOMETRY(VARCHAR, TIME, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, VARIANT, BOOLEAN) → GEOMETRY |
ST_GEOMFROMWKB | supported | Other | (ANY) → GEOMETRY(BINARY) → GEOMETRY(VARCHAR) → GEOMETRY(ANY, ANY) → GEOMETRY(BINARY, BOOLEAN) → GEOMETRY(BINARY, DATE) → GEOMETRY(BINARY, FLOAT) → GEOMETRY(BINARY, NUMBER) → GEOMETRY(BINARY, TIME) → GEOMETRY(BINARY, TIMESTAMP_LTZ) → GEOMETRY(BINARY, TIMESTAMP_NTZ) → GEOMETRY(BINARY, TIMESTAMP_TZ) → GEOMETRY(BINARY, VARCHAR) → GEOMETRY(BINARY, VARIANT) → GEOMETRY(VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, DATE) → GEOMETRY(VARCHAR, FLOAT) → GEOMETRY(VARCHAR, NUMBER) → GEOMETRY(VARCHAR, TIME) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ) → GEOMETRY(VARCHAR, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, VARCHAR) → GEOMETRY(VARCHAR, VARIANT) → GEOMETRY(ANY, ANY, ANY) → GEOMETRY(BINARY, BOOLEAN, BOOLEAN) → GEOMETRY(BINARY, DATE, BOOLEAN) → GEOMETRY(BINARY, FLOAT, BOOLEAN) → GEOMETRY(BINARY, NUMBER, BOOLEAN) → GEOMETRY(BINARY, TIME, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(BINARY, VARCHAR, BOOLEAN) → GEOMETRY(BINARY, VARIANT, BOOLEAN) → GEOMETRY(VARCHAR, BOOLEAN, BOOLEAN) → GEOMETRY(VARCHAR, DATE, BOOLEAN) → GEOMETRY(VARCHAR, FLOAT, BOOLEAN) → GEOMETRY(VARCHAR, NUMBER, BOOLEAN) → GEOMETRY(VARCHAR, TIME, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, VARIANT, BOOLEAN) → GEOMETRY(ANY, ANY, ANY, ANY) → GEOMETRY(BINARY, NUMBER, BOOLEAN, NUMBER) → GEOMETRY(VARCHAR, NUMBER, BOOLEAN, NUMBER) → GEOMETRY |
ST_GEOMFROMWKT | supported | Other | (ANY) → GEOMETRY(VARCHAR) → GEOMETRY(ANY, ANY) → GEOMETRY(BINARY, DATE) → GEOMETRY(BINARY, TIME) → GEOMETRY(BINARY, TIMESTAMP_LTZ) → GEOMETRY(BINARY, TIMESTAMP_NTZ) → GEOMETRY(BINARY, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, DATE) → GEOMETRY(VARCHAR, FLOAT) → GEOMETRY(VARCHAR, NUMBER) → GEOMETRY(VARCHAR, TIME) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ) → GEOMETRY(VARCHAR, TIMESTAMP_TZ) → GEOMETRY(VARCHAR, VARCHAR) → GEOMETRY(VARCHAR, VARIANT) → GEOMETRY(ANY, ANY, ANY) → GEOMETRY(BINARY, DATE, BOOLEAN) → GEOMETRY(BINARY, TIME, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(BINARY, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, BOOLEAN, BOOLEAN) → GEOMETRY(VARCHAR, DATE, BOOLEAN) → GEOMETRY(VARCHAR, FLOAT, BOOLEAN) → GEOMETRY(VARCHAR, NUMBER, BOOLEAN) → GEOMETRY(VARCHAR, TIME, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_LTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_NTZ, BOOLEAN) → GEOMETRY(VARCHAR, TIMESTAMP_TZ, BOOLEAN) → GEOMETRY(VARCHAR, VARCHAR, BOOLEAN) → GEOMETRY(VARCHAR, VARIANT, BOOLEAN) → GEOMETRY |
SYSTEM$ARE_ANACONDA_TERMS_ACKNOWLEDGED | supported | Other | () → BOOLEAN |
SYSTEM$BOOTSTRAP_DATA_REQUEST | supported | Other | () → VARCHAR(ANY) → VARCHAR(SNOWFLAKE_VARCHAR[]) → VARCHAR |
SYSTEM$GET_DEFAULT_PYTHON_ARTIFACT_REPOSITORY | supported | Other | (VARCHAR, VARCHAR, VARCHAR) → VARCHAR |
SYSTEM$GET_REFERENCE_DEFINITIONS | supported | Native apps, listings & sharing | (VARCHAR) → VARCHAR |
SYSTEM$RETURN_CURRENT_ORG_NAME | supported | Other | () → VARCHAR |
SYSTEM$SEND_EMAIL | supported | Other | (ANY, ANY, ANY, ANY) → BOOLEAN(VARCHAR, VARCHAR, VARCHAR, VARCHAR) → BOOLEAN(VARCHAR, VARCHAR, VARCHAR, VARCHAR, VARCHAR) → BOOLEAN |
SYSTEM$SEND_SNOWFLAKE_NOTIFICATION | supported | Other | (ANY, ANY) → VARCHAR(ARRAY, ARRAY) → VARCHAR(ARRAY, VARCHAR) → VARCHAR(VARCHAR, ARRAY) → VARCHAR(VARCHAR, VARCHAR) → VARCHAR |
SYSTEM$VALIDATE_NATIVE_APP_SETUP | supported | Other | (VARCHAR) → VARCHAR |
TIMEFROMPARTS | supported | Other | (ANY, ANY, ANY) → TIME(NUMBER, NUMBER, NUMBER) → TIME(NUMBER, NUMBER, NUMBER, NUMBER) → TIME |
TIMESTAMPFROMPARTS | supported | Other | (DATE, TIME) → TIMESTAMP_NTZ(ANY, ANY, ANY, ANY, ANY, ANY) → TIMESTAMP_NTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_NTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_NTZ |
TIMESTAMPLTZFROMPARTS | supported | Other | (DATE, TIME) → TIMESTAMP_LTZ(ANY, ANY, ANY, ANY, ANY, ANY) → TIMESTAMP_LTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_LTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_LTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, VARCHAR) → TIMESTAMP_LTZ |
TIMESTAMPNTZFROMPARTS | supported | Other | (DATE, TIME) → TIMESTAMP_NTZ(ANY, ANY, ANY, ANY, ANY, ANY) → TIMESTAMP_NTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_NTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_NTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, VARCHAR) → TIMESTAMP_NTZ |
TIMESTAMPTZFROMPARTS | supported | Other | (DATE, TIME) → TIMESTAMP_TZ(ANY, ANY, ANY, ANY, ANY, ANY) → TIMESTAMP_TZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_TZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_TZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, VARCHAR) → TIMESTAMP_TZ |
TIMESTAMP_LTZ_FROM_PARTS | supported | Other | (DATE, TIME) → TIMESTAMP_LTZ(ANY, ANY, ANY, ANY, ANY, ANY) → TIMESTAMP_LTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_LTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_LTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, VARCHAR) → TIMESTAMP_LTZ |
TIMESTAMP_NTZ_FROM_PARTS | supported | Other | (DATE, TIME) → TIMESTAMP_NTZ(ANY, ANY, ANY, ANY, ANY, ANY) → TIMESTAMP_NTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_NTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_NTZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, VARCHAR) → TIMESTAMP_NTZ |
TIMESTAMP_TZ_FROM_PARTS | supported | Other | (DATE, TIME) → TIMESTAMP_TZ(ANY, ANY, ANY, ANY, ANY, ANY) → TIMESTAMP_TZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_TZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER) → TIMESTAMP_TZ(NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, VARCHAR) → TIMESTAMP_TZ |
WEBHOOK_INTEGRATION_CONFIG | supported | Other | — |