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