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