Count the number of elements in the input BITMAP
BITMAP_COUNT(<bitmap>)
| Parameter | Description |
|---|---|
<bitmap> | a BITMAP |
Returns an integer
select bitmap_count(to_bitmap(1)) cnt;
+------+ | cnt | +------+ | 1 | +------+
select bitmap_count(bitmap_empty()) cnt;
+------+ | cnt | +------+ | 0 | +------+