groupBitmapOr
groupBitmapOr
引入版本:v20.1
计算 bitmap 列的 OR 运算并返回其基数。
如果添加后缀组合子 -State,则返回一个 bitmap 对象。
这等价于 groupBitmapMerge(带 -Merge 组合子后缀的 groupBitmap)。
语法
参数
expr— 一个其结果类型为AggregateFunction(groupBitmap, UInt*)的表达式。AggregateFunction(groupBitmap, UInt*)
返回值
返回 UInt64 类型的计数值;当使用 -State 后缀时,返回 bitmap 对象。UInt64
示例
使用示例
使用 -State 组合器