Categories: Datatype, Variant Type
IS_BOOLEAN Preview
Returns TRUE if the input expression is a VARIANT<BOOLEAN>.
Syntax
IS_BOOLEAN(value VARIANT) → BOOLEAN
- value: The VARIANT value to check.
Examples
IS_BOOLEAN exampleSELECT IS_BOOLEAN(TO_VARIANT(FALSE))
-- TRUE
SELECT IS_BOOLEAN(TO_VARIANT('hello'))
-- FALSE
Usage Notes
NULL handling for VARIANT inputs
If the input is SQL NULL (e.g., from a missing path), IS_BOOLEAN returns NULL.
| Input | Result |
|---|---|
| VARIANT boolean | TRUE |
| VARIANT other type | FALSE |
| VARIANT null | FALSE |
| SQL NULL | NULL |