From 85f8918753110ec2d7f8a2a9a2757e5638bc2984 Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov Date: Wed, 3 Feb 2021 07:47:53 +0300 Subject: [PATCH] fix the row order to be like in the original test --- tests/performance/group_by_sundy_li.xml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/tests/performance/group_by_sundy_li.xml b/tests/performance/group_by_sundy_li.xml index 762a07b8702..a022692a017 100644 --- a/tests/performance/group_by_sundy_li.xml +++ b/tests/performance/group_by_sundy_li.xml @@ -4,20 +4,21 @@ -CREATE TABLE a -( - d Date, - os String -) -ENGINE = MergeTree -PARTITION BY d -ORDER BY d + CREATE TABLE a + ( + d Date, + os String, + n UInt64 + ) + ENGINE = MergeTree + PARTITION BY d + ORDER BY d, n - insert into a select '2000-01-01', ['aa','bb','cc','dd'][number % 4 + 1] from numbers_mt(100000000) - insert into a select '2000-01-02', ['aa','bb','cc','dd'][number % 4 + 1] from numbers_mt(100000000) - insert into a select '2000-01-03', ['aa','bb','cc','dd'][number % 4 + 1] from numbers_mt(100000000) - insert into a select '2000-01-04', ['aa','bb','cc','dd'][number % 4 + 1] from numbers_mt(100000000) + insert into a select '2000-01-01', ['aa','bb','cc','dd'][number % 4 + 1], number from numbers_mt(100000000) + insert into a select '2000-01-02', ['aa','bb','cc','dd'][number % 4 + 1], number from numbers_mt(100000000) + insert into a select '2000-01-03', ['aa','bb','cc','dd'][number % 4 + 1], number from numbers_mt(100000000) + insert into a select '2000-01-04', ['aa','bb','cc','dd'][number % 4 + 1], number from numbers_mt(100000000) OPTIMIZE TABLE a FINAL