ClickHouse/tests/performance/set_disable_skip_index.xml

18 lines
646 B
XML
Raw Normal View History

2023-04-04 21:29:52 +00:00
<test>
<create_query>
CREATE TABLE test_in_skip_idx
(
a UInt64,
s String,
INDEX idx s TYPE bloom_filter GRANULARITY 1
)
ENGINE = MergeTree() ORDER BY a
</create_query>
<fill_query>INSERT INTO test_in_skip_idx SELECT number, number FROM numbers(10000000)</fill_query>
<fill_query>OPTIMIZE TABLE test_in_skip_idx FINAL</fill_query>
<query>SELECT count() FROM test_in_skip_idx WHERE s IN (SELECT toString(number + 10000000) FROM numbers(100000)) SETTINGS use_skip_indexes = 0</query>
<drop_query>DROP TABLE IF EXISTS test_in_skip_idx</drop_query>
</test>