From 3b428d6585be14a978a85d2310d99d7f95b0cf07 Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov Date: Thu, 9 Jul 2020 13:46:16 +0300 Subject: [PATCH] fixes --- tests/performance/decimal_aggregates.xml | 4 +++ tests/performance/least_greatest_hits.xml | 2 +- .../performance/read_in_order_many_parts.xml | 26 ++++++++----------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/performance/decimal_aggregates.xml b/tests/performance/decimal_aggregates.xml index c14f4e51760..9c3f0c17464 100644 --- a/tests/performance/decimal_aggregates.xml +++ b/tests/performance/decimal_aggregates.xml @@ -1,4 +1,8 @@ + + 20G + + CREATE TABLE t (x UInt64, d32 Decimal32(3), d64 Decimal64(4), d128 Decimal128(5)) ENGINE = Memory INSERT INTO t SELECT number AS x, x % 1000000 AS d32, x AS d64, x d128 FROM numbers_mt(1000000000) DROP TABLE IF EXISTS t diff --git a/tests/performance/least_greatest_hits.xml b/tests/performance/least_greatest_hits.xml index 2194581adfe..5b27fc8f363 100644 --- a/tests/performance/least_greatest_hits.xml +++ b/tests/performance/least_greatest_hits.xml @@ -4,6 +4,6 @@ SELECT count() FROM hits_100m_single WHERE NOT ignore(least(URL, Referer)) - SELECT count() FROM hits_100m_single WHERE NOT ignore(greatest(URL, Referer, Title)) + SELECT count() FROM hits_10m_single WHERE NOT ignore(greatest(URL, Referer, Title)) SELECT count() FROM hits_100m_single WHERE NOT ignore(greatest(ClientIP, RemoteIP)) diff --git a/tests/performance/read_in_order_many_parts.xml b/tests/performance/read_in_order_many_parts.xml index 9da19410f5f..3372d62194a 100644 --- a/tests/performance/read_in_order_many_parts.xml +++ b/tests/performance/read_in_order_many_parts.xml @@ -2,31 +2,27 @@ 1 1 - 200 + 2000 8 - table + parts - mt_20_parts - mt_200_parts + 200 + 2000 - CREATE TABLE mt_20_parts(id UInt32, val1 UInt32, val2 UInt32) ENGINE = MergeTree ORDER BY val1 PARTITION BY id % 20 - CREATE TABLE mt_200_parts(id UInt32, val1 UInt32, val2 UInt32) ENGINE = MergeTree ORDER BY val1 PARTITION BY id % 200 + CREATE TABLE mt_{parts}_parts(id UInt32, val1 UInt32, val2 UInt32) ENGINE = MergeTree ORDER BY val1 PARTITION BY id % {parts} + INSERT INTO mt_{parts}_parts SELECT number, rand() % 10000, rand() FROM numbers_mt(100000000) + OPTIMIZE TABLE mt_{parts}_parts FINAL - INSERT INTO mt_20_parts SELECT number, rand() % 10000, rand() FROM numbers_mt(1000000000) - INSERT INTO mt_200_parts SELECT number, rand() % 10000, rand() FROM numbers_mt(1000000000) - OPTIMIZE TABLE mt_20_parts FINAL - OPTIMIZE TABLE mt_200_parts FINAL + SELECT val2 FROM mt_{parts}_parts ORDER BY val1 LIMIT 1000 FORMAT Null + SELECT val2 FROM mt_{parts}_parts ORDER BY val1 LIMIT 100000 FORMAT Null + SELECT sum(val2) FROM mt_{parts}_parts GROUP BY val1 FORMAT Null - SELECT val2 FROM {table} ORDER BY val1 LIMIT 100 FORMAT Null - SELECT val2 FROM {table} ORDER BY val1 LIMIT 100000 FORMAT Null - SELECT sum(val2) FROM {table} GROUP BY val1 FORMAT Null - - DROP TABLE IF EXISTS {table} + DROP TABLE IF EXISTS mt_{parts}_parts