BOOLEAN
type
Applies to: Databricks SQL Databricks Runtime
Represents Boolean values.
Limits
The type supports true and false values.
Examples
> SELECT true;
TRUE
> SELECT typeof(false);
BOOLEAN
> SELECT CAST(0 AS BOOLEAN);
FALSE
> SELECT CAST(-1 AS BOOLEAN);
TRUE
> SELECT CAST('true' AS BOOLEAN);
TRUE