Add perftest: low_cardinality_query

This commit is contained in:
Wangyang Guo 2022-11-08 17:19:18 +08:00
parent a2b83d3592
commit 887779e8d8

View File

@ -0,0 +1,13 @@
<test>
<create_query>DROP TABLE IF EXISTS test_lc_query</create_query>
<create_query>
CREATE TABLE test_lc_query (x UInt64, lc LowCardinality(Nullable(String))) ENGINE = MergeTree order by x
</create_query>
<fill_query>INSERT INTO test_lc_query SELECT number, toString(number % 100) FROM numbers(1e7)</fill_query>
<query>SELECT count() FROM test_lc_query WHERE lc = '12' OR lc = '34'</query>
<query>SELECT count() FROM test_lc_query WHERE lc = '12' OR lc = '34' OR lc = '56'</query>
<drop_query>DROP TABLE IF EXISTS test_lc_query</drop_query>
</test>