orthogonal_bitmap_union_count
Descriptionβ
The ORTHOGONAL_BITMAP_UNION_COUNT function returns the number of elements in the set after performing a union calculation on the Bitmap expression.
Syntaxβ
ORTHOGONAL_BITMAP_UNION_COUNT(<bitmap_column>, <column_to_filter>, <filter_values>)
Parametersβ
Parameters | Description |
---|---|
<bitmap_column> | The Bitmap type expression needs to be obtained |
<column_to_filter> | Optional. The dimension column that needs to be filtered |
<filter_values> | Optional. A variable-length parameter, used to filter different values of the dimension column |
Return Valueβ
Returns a value of type BIGINT.
Exampleβ
select ORTHOGONAL_BITMAP_UNION_COUNT(members) from tag_map where tag_group in ( 1150000, 1150001, 390006);
+------------------------------------------+
| orthogonal_bitmap_union_count(`members`) |
+------------------------------------------+
| 286957811 |
+------------------------------------------+