Categories: Datatype, Variant Type
IS_INT Preview
Returns TRUE if the input expression is an integer value.
Syntax
IS_INT(expression any) → BOOLEAN
- expression: Input expression.
Examples
IS_INT exampleSELECT IS_INT(column_name)
-- TRUE
SELECT IS_INT(variant_get(PARSE_JSON('{"count": 5}'), '$.count'))
-- TRUE
Usage Notes
NULL handling for VARIANT inputs
If the input is SQL NULL (e.g., from a missing path), IS_INT returns NULL.
| Input | Result |
|---|---|
| VARIANT int | TRUE |
| VARIANT other type | FALSE |
| VARIANT null | FALSE |
| SQL NULL | NULL |