mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 11:33:46 +00:00
25 lines
1.0 KiB
XML
25 lines
1.0 KiB
XML
|
<test max_ignored_relative_change="0.2">
|
||
|
<create_query>drop table if EXISTS test_bm2;</create_query>
|
||
|
<create_query>drop table if EXISTS test_bm_join2;</create_query>
|
||
|
<create_query>create table test_bm2(
|
||
|
dim UInt64,
|
||
|
id UInt64)
|
||
|
ENGINE = MergeTree()
|
||
|
ORDER BY( dim )
|
||
|
SETTINGS index_granularity = 8192;
|
||
|
</create_query>
|
||
|
<create_query>
|
||
|
create table test_bm_join2(
|
||
|
dim UInt64,
|
||
|
ids AggregateFunction(groupBitmap, UInt64) )
|
||
|
ENGINE = MergeTree()
|
||
|
ORDER BY(dim)
|
||
|
SETTINGS index_granularity = 8192;
|
||
|
</create_query>
|
||
|
<fill_query>insert into test_bm2 SELECT 1,number FROM numbers(0, 1000)</fill_query>
|
||
|
<fill_query>insert into test_bm_join2 SELECT 1, bitmapBuild(range(toUInt64(0),toUInt64(11000000)))</fill_query>
|
||
|
<query>select a.dim,bitmapCardinality(b.ids) from test_bm2 a left join test_bm_join2 b using(dim)</query>
|
||
|
<drop_query>drop table if exists test_bm2</drop_query>
|
||
|
<drop_query>drop table if exists test_bm_join2</drop_query>
|
||
|
</test>
|