mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
34 lines
1.2 KiB
XML
34 lines
1.2 KiB
XML
|
<test>
|
||
|
<substitutions>
|
||
|
<substitution>
|
||
|
<name>uniq_keys</name>
|
||
|
<values>
|
||
|
<value>10000</value>
|
||
|
<value>50000</value>
|
||
|
<value>100000</value>
|
||
|
<value>250000</value>
|
||
|
<value>500000</value>
|
||
|
<value>1000000</value>
|
||
|
</values>
|
||
|
</substitution>
|
||
|
</substitutions>
|
||
|
|
||
|
<create_query>create table t_{uniq_keys}(a UInt64) engine=MergeTree order by tuple()</create_query>
|
||
|
|
||
|
<fill_query>insert into t_{uniq_keys} select number % {uniq_keys} from numbers_mt(5e7)</fill_query>
|
||
|
|
||
|
<query>SELECT count(distinct a) FROM t_{uniq_keys} GROUP BY a FORMAT Null</query>
|
||
|
<query>SELECT uniqExact(a) FROM t_{uniq_keys} GROUP BY a FORMAT Null</query>
|
||
|
|
||
|
<query>SELECT count(distinct a) FROM t_{uniq_keys}</query>
|
||
|
<query>SELECT uniqExact(a) FROM t_{uniq_keys}</query>
|
||
|
|
||
|
<query>SELECT uniqExact(number) from numbers_mt(1e7)</query>
|
||
|
<query>SELECT uniqExact(number) from numbers_mt(5e7)</query>
|
||
|
|
||
|
<query>SELECT uniqExact(number, number) from numbers_mt(5e6)</query>
|
||
|
<query>SELECT uniqExact(number, number) from numbers_mt(1e7)</query>
|
||
|
|
||
|
<drop_query>drop table t_{uniq_keys}</drop_query>
|
||
|
</test>
|