bitmap_has_any

description

Syntax

BOOLEAN BITMAP_HAS_ANY(BITMAP lhs, BITMAP rhs)

Calculate whether there are intersecting elements in the two Bitmap columns. The return value is Boolean.

example

1. mysql> select bitmap_has_any(to_bitmap(1),to_bitmap(2));
2. +--------------------------------------------+
3. | bitmap_has_any(to_bitmap(1), to_bitmap(2)) |
4. +--------------------------------------------+
5. |                                          0 |
6. +--------------------------------------------+

8. mysql> select bitmap_has_any(to_bitmap(1),to_bitmap(1));
9. +--------------------------------------------+
10. | bitmap_has_any(to_bitmap(1), to_bitmap(1)) |
11. +--------------------------------------------+
12. |                                          1 |
13. +--------------------------------------------+

keywords

1. BITMAP_HAS_ANY,BITMAP