From ddd40fc4ce15e8277fd0978d3fbb08212b14e38a Mon Sep 17 00:00:00 2001 From: myrrc Date: Thu, 5 Nov 2020 12:20:05 +0300 Subject: [PATCH] fixed the perf test --- tests/performance/avg_weighted.xml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/performance/avg_weighted.xml b/tests/performance/avg_weighted.xml index 13bc7e58c44..a55fe245399 100644 --- a/tests/performance/avg_weighted.xml +++ b/tests/performance/avg_weighted.xml @@ -1,20 +1,22 @@ + + hits_100m_single + + DROP TABLE IF EXISTS perf_avg SET allow_experimental_bigint_types=1 CREATE TABLE perf_avg( num UInt64, num_u Decimal256(75) DEFAULT toDecimal256(num / 400000, 75), - num_f Float64 DEFAULT num + num_f Float64 DEFAULT num / 100 ) ENGINE = MergeTree() ORDER BY tuple() INSERT INTO perf_avg(num) - SELECT number / r - FROM system.numbers - ARRAY JOIN range(1, 400000) AS r - LIMIT 200000000 + SELECT toUInt64(UserID / (WatchID + 1) * 1000000) + FROM hits_100m_single SELECT avg(num) FROM perf_avg