ClickHouse/tests/performance/low_cardinality_query.xml

14 lines
590 B
XML
Raw Normal View History

2022-11-08 09:19:18 +00:00
<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>