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