2021-05-20 14:14:55 +00:00
|
|
|
<test max_ignored_relative_change="0.2">
|
2020-06-25 20:40:07 +00:00
|
|
|
<settings>
|
|
|
|
<max_threads>4</max_threads>
|
2020-06-26 17:54:50 +00:00
|
|
|
<max_memory_usage>20G</max_memory_usage>
|
2020-06-25 20:40:07 +00:00
|
|
|
<use_uncompressed_cache>1</use_uncompressed_cache>
|
|
|
|
<merge_tree_max_rows_to_use_cache>2000000000</merge_tree_max_rows_to_use_cache>
|
2020-06-27 16:17:03 +00:00
|
|
|
<merge_tree_max_bytes_to_use_cache>10G</merge_tree_max_bytes_to_use_cache>
|
2020-06-25 20:40:07 +00:00
|
|
|
</settings>
|
|
|
|
|
|
|
|
<substitutions>
|
|
|
|
<substitution>
|
2020-06-25 20:43:03 +00:00
|
|
|
<name>engine</name>
|
2020-06-25 20:40:07 +00:00
|
|
|
<values>
|
|
|
|
<value>Memory</value>
|
|
|
|
<value>MergeTree ORDER BY tuple()</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
<substitution>
|
|
|
|
<name>type</name>
|
|
|
|
<values>
|
|
|
|
<value>Int32</value>
|
|
|
|
<value>Int32 NULL</value>
|
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
</substitutions>
|
|
|
|
|
2020-06-26 09:43:19 +00:00
|
|
|
<create_query>CREATE TABLE `zz_{type}_{engine}` (x {type}) ENGINE {engine}</create_query>
|
2021-03-29 19:43:02 +00:00
|
|
|
<fill_query>INSERT INTO `zz_{type}_{engine}` SELECT rand() FROM numbers_mt(1000000000) SETTINGS max_insert_threads = 8</fill_query>
|
|
|
|
<fill_query>OPTIMIZE TABLE `zz_{type}_MergeTree ORDER BY tuple()` FINAL</fill_query>
|
2020-06-25 20:40:07 +00:00
|
|
|
|
2020-06-26 09:43:19 +00:00
|
|
|
<query>SELECT sum(x) FROM `zz_{type}_{engine}`</query>
|
2020-06-25 20:40:07 +00:00
|
|
|
|
2020-06-26 09:43:19 +00:00
|
|
|
<drop_query>DROP TABLE IF EXISTS `zz_{type}_{engine}`</drop_query>
|
2020-06-25 20:40:07 +00:00
|
|
|
</test>
|