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
└─────────────────────────────────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today