Files
doris/docs/en/sql-reference/sql-functions/bitmap-functions/bitmap_and_not.md
Pxl 28030294f7 [Feature] Support bitmap_and_not & bitmap_and_not_count (#6910)
Support bitmap_and_not & bitmap_and_not_count.
2021-11-01 10:11:54 +08:00

1.2 KiB

title, language
title language
bitmap_and_not en

bitmap_and_not

description

Syntax

BITMAP BITMAP_AND_NOT(BITMAP lhs, BITMAP rhs)

Calculate the set after lhs minus intersection of two input bitmaps, return the new bitmap.

example

mysql> select bitmap_count(bitmap_and_not(bitmap_from_string('1,2,3'),bitmap_from_string('3,4,5'))) cnt;
+------+
| cnt  |
+------+
|    2 |
+------+

keyword

BITMAP_AND_NOT,BITMAP