Syntax
Parameters
variant_expr: the expression that represents the VARIANT object. This is typically a VARIANT column from an Iceberg table or a VARIANT value returned byvariant_query.
Return value
Returns a VARCHAR value representing the type name. Possible return values include:"Null"- for a VARIANT null, such as a JSON null. For SQL NULL, including the result ofvariant_querywhen the path does not exist, the function returns NULL. To test for a VARIANT null, use is_variant_null."Boolean(true)"- for boolean true values"Boolean(false)"- for boolean false values"Int8","Int16","Int32","Int64"- for integer values"Float","Double"- for floating-point values"Decimal4","Decimal8","Decimal16"- for decimal values with different precision"String"- for string values"Binary"- for binary data"Date"- for date values"TimestampTz","TimestampNtz"- for timestamp values with or without timezone"TimestampTzNanos","TimestampNtzNanos"- for nanosecond-precision timestamp values"TimeNtz"- for time values without timezone"Uuid"- for UUID values"Object"- for struct or map values"Array"- for array values