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