IS_OBJECT (Lakehouse v1)
Checks if the input value is a JSON object.
Analyze Syntax
Section titled “Analyze Syntax”func.is_object(<expr>)Analyze Examples
Section titled “Analyze Examples”func.is_object(func.parse_json('{"a":"b"}')), func.is_object(func.parse_json('["a","b","c"]'))┌──────────────────────────────────────────────────────────────────────────────────────────────────┐│ func.is_object(func.parse_json('{"a":"b"}')) │ func.is_object(func.parse_json('["a","b","c"]')) │├───────────────────────────────────────────────┼──────────────────────────────────────────────────┤│ true │ false │└──────────────────────────────────────────────────────────────────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”IS_OBJECT( <expr> )Return Type
Section titled “Return Type”Returns true if the input JSON value is a JSON object, and false otherwise.
SQL Examples
Section titled “SQL Examples”SELECT IS_OBJECT(PARSE_JSON('{"a":"b"}')), -- JSON Object IS_OBJECT(PARSE_JSON('["a","b","c"]')); --JSON Array
┌─────────────────────────────────────────────────────────────────────────────┐│ is_object(parse_json('{"a":"b"}')) │ is_object(parse_json('["a","b","c"]')) │├────────────────────────────────────┼────────────────────────────────────────┤│ true │ false │└─────────────────────────────────────────────────────────────────────────────┘