ClickHouse/tests/performance/low_cardinality_query.xml
2022-11-08 17:19:18 +08:00

14 lines
590 B
XML

<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>