VeloDB Cloud
SQL Manual
Functions
bitmap-functions
bitmap_contains

bitmap_contains

Description

Syntax:

BOOLEAN BITMAP_CONTAINS(BITMAP bitmap, BIGINT input)

This function checks if the input value is in the bitmap column and returns a Boolean value.

Example

mysql> select bitmap_contains(to_bitmap(1),2) cnt;
+------+
| cnt  |
+------+
|    0 |
+------+

mysql> select bitmap_contains(to_bitmap(1),1) cnt;
+------+
| cnt  |
+------+
|    1 |
+------+

Keywords

BITMAP_CONTAINS,BITMAP