ClickHouse/tests/performance/avg.xml
2021-11-24 11:14:31 +01:00

31 lines
608 B
XML

<test>
<query>SELECT avg(number) FROM numbers(1000000000)</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>