VeloDB Cloud
SQL Manual
Functions
bitmap-functions
orthogonal_bitmap_intersect

orthogonal_bitmap_intersect

Description

Syntax:

BITMAP ORTHOGONAL_BITMAP_INTERSECT(bitmap_column, column_to_filter, filter_values)

This function calculates the intersection of bitmaps. The first argument is the bitmap column, the second is the dimension column used for filtering, and the third is a variable-length argument, which specifies filter values.

Example

mysql> select orthogonal_bitmap_intersect(members, tag_group, 1150000, 1150001, 390006) from tag_map where  tag_group in ( 1150000, 1150001, 390006);
+-------------------------------------------------------------------------------+
| orthogonal_bitmap_intersect(`members`, `tag_group`, 1150000, 1150001, 390006) |
+-------------------------------------------------------------------------------+
| NULL                                                                          |
+-------------------------------------------------------------------------------+
1 row in set (3.505 sec)

Keywords

ORTHOGONAL_BITMAP_INTERSECT,BITMAP