[typo](docs)add orthogonal bitmap function note. #13078

This commit is contained in:
Liqf
2022-10-11 15:46:56 +08:00
committed by GitHub
parent 88264b3e7b
commit 230efa29dd
2 changed files with 5 additions and 1 deletions

View File

@ -87,6 +87,8 @@ Note: the first column represents the user tags, which have been converted from
When loading data, vertically cut the bitmap value range of the user. For example, the hid value of the user ID in the range of 1-5000000 is the same, and the row with the same HID value will be allocated into a sub-bucket, so that the bitmap value in each sub-bucket is orthogonal. On the UDAF implementation of bitmap, the orthogonal feature of bitmap value in the bucket can be used to perform intersection union calculation, and the calculation results will be shuffled to the top node for aggregation.
Note: The orthogonal bitmap function cannot be used in the partitioned table. Because the partitions of the partitioned table are orthogonal, the data between partitions cannot be guaranteed to be orthogonal, so the calculation result cannot be estimated.
#### orthogonal_bitmap_intersect
The bitmap intersection function

View File

@ -89,6 +89,8 @@ user_id = to_bitmap(tmp_user_id)
load数据时,对用户bitmap值range范围纵向切割,例如,用户id在1-5000000范围内的hid值相同,hid值相同的行会分配到一个分桶内,如此每个分桶内到的bitmap都是正交的。可以利用桶内bitmap值正交特性,进行交并集计算,计算结果会被shuffle至top节点聚合。
注:正交bitmap函数不能用在分区表,因为分区表分区内正交,分区之间的数据是无法保证正交的,则计算结果也是无法预估的。
#### bitmap_orthogonal_intersect
求bitmap交集函数
@ -158,4 +160,4 @@ orthogonal_bitmap_union_count(bitmap_column)
```sql
select orthogonal_bitmap_union_count(user_id) from user_tag_bitmap where tag in (13080800, 11110200);
```
```