Get started
Load & manage data
Work with data
Administration
Reference & resources
Updated Jun 02, 2023
Send us feedback
typeof
Applies to: Databricks SQL Databricks Runtime
Return a DDL-formatted type string for the data type of the input.
typeof(expr)
expr: Any expression.
expr
A STRING.
> SELECT typeof(1); int > SELECT typeof(array(1)); array<int>