Skip to main content

Type Predicate Functions

This section provides reference information for type predicate functions in Databend. 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
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today