ClickHouse/tests/performance/aggregation_by_partitions.xml

49 lines
1.8 KiB
XML
Raw Normal View History

2023-01-05 19:22:42 +00:00
<test>
2023-01-11 22:32:54 +00:00
<settings>
<allow_aggregate_partitions_independently>1</allow_aggregate_partitions_independently>
<force_aggregate_partitions_independently>1</force_aggregate_partitions_independently>
<max_number_of_partitions_for_independent_aggregation>256</max_number_of_partitions_for_independent_aggregation>
2023-01-11 22:32:54 +00:00
<max_memory_usage>0</max_memory_usage>
2023-01-22 19:36:11 +00:00
<max_partitions_per_insert_block>256</max_partitions_per_insert_block>
2023-01-11 22:32:54 +00:00
</settings>
2023-01-05 19:22:42 +00:00
2023-01-11 22:32:54 +00:00
<substitutions>
<substitution>
<name>size</name>
<values>
2023-01-22 19:36:11 +00:00
<!-- <value>10000</value> -->
2023-01-11 22:32:54 +00:00
<value>100000</value>
<value>1000000</value>
<value>10000000</value>
2023-01-22 19:36:11 +00:00
<!-- <value>100000000</value> -->
2023-01-11 22:32:54 +00:00
</values>
</substitution>
2023-01-05 19:22:42 +00:00
2023-01-11 22:32:54 +00:00
<substitution>
<name>partitions</name>
<values>
2023-01-22 19:36:11 +00:00
<!-- <value>2</value> -->
<!-- <value>4</value> -->
<!-- <value>8</value> -->
2023-01-11 22:32:54 +00:00
<value>16</value>
<value>32</value>
<value>64</value>
2023-01-22 19:36:11 +00:00
<!-- <value>128</value> -->
<!-- <value>256</value> -->
2023-01-11 22:32:54 +00:00
</values>
</substitution>
</substitutions>
2023-01-05 19:22:42 +00:00
2023-01-24 14:33:39 +00:00
<create_query>create table t_{size}_{partitions}(a UInt64) engine=MergeTree order by a partition by sipHash64(a) % {partitions}</create_query>
2023-01-05 19:22:42 +00:00
2023-01-11 22:32:54 +00:00
<fill_query>insert into t_{size}_{partitions} select * from numbers_mt({size})</fill_query>
2023-01-11 21:10:51 +00:00
2023-01-24 14:33:39 +00:00
<fill_query>optimize table t_{size}_{partitions} final</fill_query>
2023-01-11 22:32:54 +00:00
<query>select a from t_{size}_{partitions} group by a format Null</query>
<query>select a from t_{size}_{partitions} group by a format Null settings optimize_aggregation_in_order = 1</query>
<drop_query>drop table t_{size}_{partitions}</drop_query>
2023-01-05 19:22:42 +00:00
</test>