ClickHouse/tests/performance/uniq_without_key.xml
Nikita Taranov 7beb58b0cf
Optimize merge of uniqExact without_key (#43072)
* impl for uniqExact

* rm unused (read|write)Text methods

* fix style

* small fixes

* impl for variadic uniqExact

* refactor

* fix style

* more agressive inlining

* disable if max_threads=1

* small improvements

* review fixes

* Revert "rm unused (read|write)Text methods"

This reverts commit a7e7480584.

* encapsulate is_able_to_parallelize_merge in Data

* encapsulate is_exact & argument_is_tuple in Data
2022-11-17 13:19:02 +01:00

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>