mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
33 lines
758 B
XML
33 lines
758 B
XML
<test>
|
|
<query>SELECT avg(number) FROM numbers(100000000)</query>
|
|
<query>SELECT avg(number::Float64) FROM numbers(100000000)</query>
|
|
<query>SELECT avg(number::Nullable(Float64)) FROM numbers(10000000)</query>
|
|
|
|
<query>
|
|
SELECT avgIf(key, key != -1)
|
|
FROM
|
|
(
|
|
SELECT materialize(1) AS key
|
|
FROM numbers(100000000)
|
|
)
|
|
</query>
|
|
|
|
<query>
|
|
SELECT avgIf(key, key != -1)
|
|
FROM
|
|
(
|
|
SELECT materialize(toNullable(1)) AS key
|
|
FROM numbers(100000000)
|
|
)
|
|
</query>
|
|
|
|
<query>
|
|
SELECT avg(key)
|
|
FROM
|
|
(
|
|
SELECT materialize(toNullable(1)) AS key
|
|
FROM numbers(100000000)
|
|
)
|
|
</query>
|
|
</test>
|