mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
fixed the perf test
This commit is contained in:
parent
bcd8f1896f
commit
ddd40fc4ce
@ -1,20 +1,22 @@
|
||||
<test>
|
||||
<preconditions>
|
||||
<table_exists>hits_100m_single</table_exists>
|
||||
</preconditions>
|
||||
|
||||
<create_query>DROP TABLE IF EXISTS perf_avg</create_query>
|
||||
<create_query>SET allow_experimental_bigint_types=1</create_query>
|
||||
|
||||
<create_query>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()
|
||||
</create_query>
|
||||
|
||||
<fill_query>
|
||||
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
|
||||
</fill_query>
|
||||
|
||||
<query>SELECT avg(num) FROM perf_avg</query>
|
||||
|
Loading…
Reference in New Issue
Block a user