groupBitmap
Bitmap or Aggregate calculations from a unsigned integer column, return cardinality of type UInt64, if add suffix -State, then return bitmap object.
Arguments
expr – An expression that results in UInt* type.
Return value
Value of the UInt64 type.
Example
Test data:
Query:
Result:
groupBitmap
Introduced in: v20.1
Creates a bitmap (bit array) from a column of unsigned integers, then returns the count of unique values (cardinality) in that bitmap.
By appending the -State combinator suffix, instead of returning the count, it returns the actual bitmap object.
Syntax
Arguments
expr— Expression that results in aUInt*type.UInt*
Returned value
Returns the count of type UInt64 type, or a bitmap object when using -State. UInt64
Examples
Usage example