From ee31be4286cd5778451c89da5dd157a7f685c334 Mon Sep 17 00:00:00 2001 From: Nikita Taranov Date: Fri, 16 Sep 2022 15:33:40 +0200 Subject: [PATCH] impl --- tests/performance/uniq_stored.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/performance/uniq_stored.xml b/tests/performance/uniq_stored.xml index 75fb9847aab..15d039978c7 100644 --- a/tests/performance/uniq_stored.xml +++ b/tests/performance/uniq_stored.xml @@ -5,7 +5,7 @@ a String, b_count AggregateFunction(uniq, UInt64) ) Engine=MergeTree partition by tuple() - ORDER by tuple() + ORDER by a SETTINGS index_granularity = 1024; @@ -15,7 +15,7 @@ a String, b_count AggregateFunction(uniq, String) ) Engine=MergeTree partition by tuple() - ORDER by tuple() + ORDER by a SETTINGS index_granularity = 1024; @@ -28,7 +28,7 @@ SELECT a, uniqState(b) b_count FROM ( - SELECT toString(rand() % 1000) a, toString(number % 10000) b + SELECT toString(intDiv(number, 20000)) a, toString(number % 10000) b FROM numbers_mt(20000000) ) GROUP BY a