📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

IS_FLOAT



Checks if the input JSON value is a float.

Syntax

IS_FLOAT( <expr> )

Return Type

Returns true if the input JSON value is a float, and false otherwise.

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]')) │ ├──────────────────────────────┼─────────────────────────────────┤ │ truefalse │ └────────────────────────────────────────────────────────────────┘

Was this page helpful?