Skip to main content

BITMAP_CONTAINS

Checks if the bitmap contains a specific value.

Syntax

BITMAP_CONTAINS( <bitmap>, <value> )

Examples

SELECT BITMAP_CONTAINS(BUILD_BITMAP([1,4,5]), 1);

┌─────────────────────────────────────────────┐
│ bitmap_contains(build_bitmap([1, 4, 5]), 1)
├─────────────────────────────────────────────┤
true
└─────────────────────────────────────────────┘
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today