BITMAP_CONTAINS
Descriptionβ
Calculates whether the input value is in the BITMAP and returns a boolean value.
Syntaxβ
BITMAP_CONTAINS(<bitmap>, <bigint>)
Parametersβ
Parameter | Description |
---|---|
<bitmap> | BITMAP collection |
<bitint> | The integer to be checked for existence |
Return Valueβ
Returns a boolean
- If the parameter is empty, returns NULL
Examplesβ
select bitmap_contains(to_bitmap(1),2) cnt1, bitmap_contains(to_bitmap(1),1) cnt2;
+------+------+
| cnt1 | cnt2 |
+------+------+
| 0 | 1 |
+------+------+