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

Type Predicate Functions



This section provides reference information for type predicate functions in TiDB Cloud Lake. These functions enable type checking, validation, and conversion of JSON values.

Type Checking

FunctionDescriptionExample
IS_ARRAYChecks if a JSON value is an arrayIS_ARRAY('[1,2,3]')true
IS_OBJECTChecks if a JSON value is an objectIS_OBJECT('{"key":"value"}')true
IS_STRINGChecks if a JSON value is a stringIS_STRING('"hello"')true
IS_INTEGERChecks if a JSON value is an integerIS_INTEGER('42')true
IS_FLOATChecks if a JSON value is a floating-point numberIS_FLOAT('3.14')true
IS_BOOLEANChecks if a JSON value is a booleanIS_BOOLEAN('true')true
IS_NULL_VALUEChecks if a JSON value is nullIS_NULL_VALUE('null')true

Was this page helpful?