TYPEOF

functionsupportedCore SQL functions

docs.snowflake.com ↗

Semi-structured and structured data functions

Returns the type of a value stored in a VARIANT column.

Syntax

TYPEOF( <expr> )

Parameters

NameRequiredDescription
exprrequiredThe argument can be a column name or a general expression of type VARIANT. If necessary, you can cast the expr to a VARIANT.

Returns

Returns a VARCHAR value that contains the data type of the input expression, such as BOOLEAN, DECIMAL, ARRAY, OBJECT, and so on.

Usage notes

See also

Referenced by