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