mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
13 lines
294 B
XML
13 lines
294 B
XML
<test>
|
|
<query>
|
|
WITH
|
|
(
|
|
SELECT bitmapBuild(groupArray(number))
|
|
FROM numbers(3000000)
|
|
) AS a,
|
|
[a, a, a] AS b
|
|
SELECT sum(bitmapCardinality(b[(number % 3) + 1]))
|
|
FROM numbers(10000)
|
|
</query>
|
|
</test>
|