From 34029d47f34977e4cd0deed46c67ec2ed6b3759e Mon Sep 17 00:00:00 2001 From: Nikita Taranov Date: Tue, 20 Dec 2022 20:18:40 +0100 Subject: [PATCH] Randomize setting `enable_memory_bound_merging_of_aggregation_results` in tests (#43986) * Randomize setting `enable_memory_bound_merging_of_aggregation_results` in tests * fix 02343_aggregation_pipeline --- tests/clickhouse-test | 1 + tests/queries/0_stateless/02343_aggregation_pipeline.sql | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tests/clickhouse-test b/tests/clickhouse-test index 20e63412d91..6e912c7ca10 100755 --- a/tests/clickhouse-test +++ b/tests/clickhouse-test @@ -456,6 +456,7 @@ class SettingsRandomizer: "merge_tree_coarse_index_granularity": lambda: random.randint(2, 32), "optimize_distinct_in_order": lambda: random.randint(0, 1), "optimize_sorting_by_input_stream_properties": lambda: random.randint(0, 1), + "enable_memory_bound_merging_of_aggregation_results": lambda: random.randint(0, 1), } @staticmethod diff --git a/tests/queries/0_stateless/02343_aggregation_pipeline.sql b/tests/queries/0_stateless/02343_aggregation_pipeline.sql index 85e9fd1be1e..b018cf21f91 100644 --- a/tests/queries/0_stateless/02343_aggregation_pipeline.sql +++ b/tests/queries/0_stateless/02343_aggregation_pipeline.sql @@ -1,3 +1,6 @@ +-- produces different pipeline if enabled +set enable_memory_bound_merging_of_aggregation_results = 0; + set max_threads = 16; set prefer_localhost_replica = 1; set optimize_aggregation_in_order = 0;