IS_STRING (Lakehouse v1)
Checks if the input JSON value is a string.
Analyze Syntax
Section titled “Analyze Syntax”func.is_string(<expr>)Analyze Examples
Section titled “Analyze Examples”func.is_string(func.parse_json('"abc"')), func.is_string(func.parse_json('123'))┌──────────────────────────────────────────────────────────────────────────────────────────────────┐│ func.is_string(func.parse_json('"abc"')) │ func.is_string(func.parse_json('123')) │├───────────────────────────────────────────────┼──────────────────────────────────────────────────┤│ true │ false │└──────────────────────────────────────────────────────────────────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”IS_STRING( <expr> )Return Type
Section titled “Return Type”Returns true if the input JSON value is a string, and false otherwise.
SQL Examples
Section titled “SQL Examples”SELECT IS_STRING(PARSE_JSON('"abc"')), IS_STRING(PARSE_JSON('123'));
┌───────────────────────────────────────────────────────────────┐│ is_string(parse_json('"abc"')) │ is_string(parse_json('123')) │├────────────────────────────────┼──────────────────────────────┤│ true │ false │└───────────────────────────────────────────────────────────────┘