数据仓库服务 GAUSSDB(DWS)-Roaring Bitmap函数:rb_and_cardinality(roaringbitmap, roaringbitmap)

时间:2024-01-26 16:15:24

rb_and_cardinality(roaringbitmap, roaringbitmap)

描述:计算两个roaringbitmap的交集的基数。

返回值类型:int

示例:

1
2
3
4
5
SELECT rb_and_cardinality(rb_build('{1,2,3}'), rb_build('{2,3,4}'));
rb_and_cardinality
--------------------
2
(1 row)
support.huaweicloud.com/sqlreference-820-dws/dws_06_0323.html