Skip to main content
Version: Stable-3.1

bitmap_contains

Description

Calculates whether the input value is in the bitmap column, and returns a Boolean value.

Syntax

B00LEAN BITMAP_CONTAINS(BITMAP bitmap, BIGINT input)

Examples

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

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

keyword

BITMAP_CONTAINS,BITMAP