bitmap_has_any
Description
Syntax
BOOLEAN BITMAP_HAS_ANY(BITMAP lhs, BITMAP rhs)
This function checks if there are any common elements in two bitmap columns. It returns a Boolean value.
Example
mysql> select bitmap_has_any(to_bitmap(1),to_bitmap(2)) cnt;
+------+
| cnt |
+------+
| 0 |
+------+
mysql> select bitmap_has_any(to_bitmap(1),to_bitmap(1)) cnt;
+------+
| cnt |
+------+
| 1 |
+------+
Keywords
BITMAP_HAS_ANY,BITMAP