Skip to main content

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 example
SELECT IS_INT(column_name)
-- TRUE
IS_INT example
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.

InputResult
VARIANT intTRUE
VARIANT other typeFALSE
VARIANT nullFALSE
SQL NULLNULL