ClickHouse/tests/performance/count.xml
2021-11-26 09:06:37 +01:00

12 lines
501 B
XML

<test>
<create_query>CREATE TABLE data(k UInt64, v UInt64) ENGINE = MergeTree ORDER BY k</create_query>
<fill_query>INSERT INTO data SELECT number, 1 from numbers(10000000)</fill_query>
<query tag='count_10M' short='1'>SELECT count() FROM data</query>
<query>SELECT count(k) FROM (SELECT k FROM data, numbers(20) _a)</query>
<query>SELECT count(k) FROM (SELECT toNullable(k) as k FROM data, numbers(20) _a)</query>
<drop_query>DROP TABLE IF EXISTS data</drop_query>
</test>