ClickHouse/tests/performance/countIf.xml

22 lines
476 B
XML

<test>
<query>SELECT countIf(number % 2) FROM numbers(100000000)</query>
<query>
SELECT countIf(key IS NOT NULL)
FROM
(
SELECT materialize(toNullable(1)) AS key
FROM numbers(100000000)
)
</query>
<query>
SELECT countIf(key IS NOT NULL)
FROM
(
SELECT materialize(CAST(NULL, 'Nullable(Int8)')) AS key
FROM numbers(100000000)
)
</query>
</test>