TYPEOF (Lakehouse v1)
TYPEOF function is used to return the name of a data type.
Analyze Syntax
Section titled “Analyze Syntax”func.typeof( <expr> )Analyze Examples
Section titled “Analyze Examples”func.typeof(1)┌──────────────────┐│ func.typeof(1) │├──────────────────┤│ INT │└──────────────────┘SQL Syntax
Section titled “SQL Syntax”TYPEOF( <expr> )Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<expr> | Any expression. This may be a column name, the result of another function, or a math operation. |
Return Type
Section titled “Return Type”String
SQL Examples
Section titled “SQL Examples”SELECT typeof(1::INT);┌──────────────────┐│ typeof(1::Int32) │├──────────────────┤│ INT │└──────────────────┘