ClickHouse/tests/performance/memory_bound_merging.xml
Nikita Taranov 8ed5cfc265
Memory bound merging for distributed aggregation in order (#40879)
* impl

* fix style

* make executeQueryWithParallelReplicas similar to executeQuery

* impl for parallel replicas

* cleaner code for remote sorting properties

* update test

* fix

* handle when nodes of old versions participate

* small fixes

* temporary enable for testing

* fix after merge

* Revert "temporary enable for testing"

This reverts commit cce7f8884c.

* review fixes

* add bc test

* Update src/Core/Settings.h
2022-11-28 00:41:31 +01:00

18 lines
800 B
XML

<test>
<settings>
<enable_memory_bound_merging_of_aggregation_results>1</enable_memory_bound_merging_of_aggregation_results>
<optimize_aggregation_in_order>1</optimize_aggregation_in_order>
</settings>
<create_query>create table t_mbm(a UInt64) engine=MergeTree order by a</create_query>
<fill_query>insert into t_mbm select * from numbers_mt(5e6)</fill_query>
<fill_query>optimize table t_mbm final</fill_query>
<query>select avg(a) from remote('127.0.0.{{1,2}}', default, t_mbm) group by a format Null</query>
<query>select * from remote('127.0.0.{{1,2}}', default, t_mbm) group by a format Null settings allow_experimental_parallel_reading_from_replicas = 1, max_parallel_replicas = 2, use_hedged_requests = 0</query>
<drop_query>drop table t_mbm</drop_query>
</test>