Back to Starrocks

bitmap_remove

docs/en/sql-reference/sql-functions/bitmap-functions/bitmap_remove.md

4.1.0486 B
Original Source

bitmap_remove

Removes input from the Bitmap value lhs and returns a result set.

Syntax

Haskell
bitmap_remove(BITMAP lhs, BIGINT input)

Examples

plain
mysql> select bitmap_to_string(**bitmap_remove**(bitmap_from_string('1, 3'), 3)) cnt;
+------+
|cnt   |
+------+
|1     |
+------+

mysql> select bitmap_to_string(**bitmap_remove**(bitmap_from_string('1,3,5'), 6)) cnt;
+------+
|cnt   |
+------+
|1,3,5 |
+------+

keyword

BITMAP_REMOVE, BITMAP