IS_INTEGER (Lakehouse v1)
Checks if the input JSON value is an integer.
Analyze Syntax
Section titled “Analyze Syntax”func.is_integer(<expr>)Analyze Examples
Section titled “Analyze Examples”func.is_integer(func.parse_json('123')), func.is_integer(func.parse_json('[1,2,3]'))┌────────────────────────────────────────────────────────────────────────────────────────┐│ func.is_integer(func.parse_json('123')) │ func.is_integer(func.parse_json('[1,2,3]')) │├──────────────────────────────────────────┼─────────────────────────────────────────────┤│ true │ false │└────────────────────────────────────────────────────────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”IS_INTEGER( <expr> )Return Type
Section titled “Return Type”Returns true if the input JSON value is an integer, and false otherwise.
SQL Examples
Section titled “SQL Examples”SELECT IS_INTEGER(PARSE_JSON('123')), IS_INTEGER(PARSE_JSON('[1,2,3]'));
┌───────────────────────────────────────────────────────────────────┐│ is_integer(parse_json('123')) │ is_integer(parse_json('[1,2,3]')) │├───────────────────────────────┼───────────────────────────────────┤│ true │ false │└───────────────────────────────────────────────────────────────────┘