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

时间:2024-10-21 16:50:41

rb_xor_cardinality(roaringbitmap, roaringbitmap)

描述:计算两个roaringbitmap异或以后的基数。

返回值类型:int

示例:

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