https://clickhouse.yandex/docs/en/query_language/functions/encoding_functions/
bitmaskToArray() is pretty useful.
Is it possible to encode an array<UInt64> to bitmask?
With higher-order functions.
Try that
select
number,
bitmaskToArray(number) as bitmask,
arrayReduce('groupBitOr', bitmask) as reverse
from numbers(100);
@filimonov
thank you! help me a lot
Most helpful comment
With higher-order functions.
Try that