数据仓库服务 GAUSSDB(DWS)-位图函数:rb_andnot_cardinality(roaringbitmap, roaringbitmap)

时间:2024-09-24 15:54:40

rb_andnot_cardinality(roaringbitmap, roaringbitmap)

描述:计算两个roaringbitmap按照andnot计算结果以后的基数。

返回值类型:int

示例:

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