snowflake.snowpark.functions.typeof¶
- snowflake.snowpark.functions.typeof(col: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L5024-L5047)¶
Reports the type of a value stored in a VARIANT column. The type is returned as a string.
For columns where all rows share the same type, the result of typeof is the underlying Snowflake column type.
Example:
For columns of VARIANT type, the underlying stored type is returned.
Example: