ClickHouse/tests/performance/avg_weighted.xml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
2.6 KiB
XML
Raw Normal View History

2021-05-20 14:14:55 +00:00
<test>
2020-11-16 16:09:58 +00:00
<settings>
<allow_experimental_bigint_types>1</allow_experimental_bigint_types>
<max_threads>1</max_threads>
<max_insert_threads>8</max_insert_threads>
</settings>
2020-11-03 13:12:27 +00:00
<create_query>CREATE TABLE perf_avg(
num UInt64,
num_u Decimal256(75) MATERIALIZED toDecimal256(num / 400000, 75),
num_f Float64 MATERIALIZED num / 100
) ENGINE = MergeTree() ORDER BY num
2020-11-03 13:12:27 +00:00
</create_query>
<fill_query>
INSERT INTO perf_avg(num)
2020-11-05 09:20:05 +00:00
SELECT toUInt64(UserID / (WatchID + 1) * 1000000)
FROM hits_100m_single
2021-04-01 11:24:56 +00:00
LIMIT 50000000
2020-11-03 13:12:27 +00:00
</fill_query>
<fill_query>optimize table perf_avg final</fill_query>
2020-11-16 16:09:58 +00:00
<query>SELECT avg(num) FROM perf_avg FORMAT Null</query>
<query>SELECT avg(2 * num) FROM perf_avg FORMAT Null</query>
<query>SELECT avg(num_u) FROM perf_avg FORMAT Null</query>
<query>SELECT avg(num_f) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeighted(num_f, num) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeighted(num_f, num_f) FROM perf_avg FORMAT Null</query>
2020-11-03 13:12:27 +00:00
<query>SELECT avgWeighted(num_f, num_f) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeighted(toNullable(num_f), num_f) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeighted(num_f, toNullable(num_f)) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeighted(toNullable(num_f), toNullable(num_f)) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeightedIf(num_f, num_f, num % 10) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeightedIf(toNullable(num_f), num_f, num % 10) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeightedIf(num_f, toNullable(num_f), num % 10) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeightedIf(toNullable(num_f), toNullable(num_f), num % 10) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeightedIf(num_f, num_f, toNullable(num) % 10) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeightedIf(toNullable(num_f), num_f, toNullable(num) % 10) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeightedIf(num_f, toNullable(num_f), toNullable(num) % 10) FROM perf_avg FORMAT Null</query>
<query>SELECT avgWeightedIf(toNullable(num_f), toNullable(num_f), toNullable(num) % 10) FROM perf_avg FORMAT Null</query>
2020-11-03 13:12:27 +00:00
<drop_query>DROP TABLE IF EXISTS perf_avg</drop_query>
</test>