Clickhouse: Change bitmapBuild result type from default UInt8

Created on 6 Nov 2019  路  3Comments  路  Source: ClickHouse/ClickHouse

Hi there! Can i somehow change result type of bitmapBuild([1,2,3,4]) not to AggregateFunction(groupBitmap, UInt8) which i assume selects type by selecting max integer in set, but to AggregateFunction(groupBitmap, UInt32) without using hacks like bitmapBuild([1,2,3,4, 4294967295])

question

Most helpful comment

@mrAndersen You can cast array to UInt32 explicitly, for example bitmapBuild(cast([1,2,3,4] as Array(UInt32))).

All 3 comments

CC @yuzhichang

@mrAndersen You can cast array to UInt32 explicitly, for example bitmapBuild(cast([1,2,3,4] as Array(UInt32))).

Thanks!

Was this page helpful?
0 / 5 - 0 ratings