ClickHouse/tests/performance/optimized_select_final_one_part.xml

21 lines
763 B
XML
Raw Normal View History

<test max_ignored_relative_change="0.2">
<settings>
<do_not_merge_across_partitions_select_final>1</do_not_merge_across_partitions_select_final>
</settings>
<create_query>
CREATE TABLE optimized_select_final (t DateTime, x Int32, s String)
ENGINE = ReplacingMergeTree()
PARTITION BY toYYYYMM(t) ORDER BY x
</create_query>
2021-01-22 14:16:22 +00:00
<fill_query>INSERT INTO optimized_select_final SELECT toDate('2020-01-01'), number, 'string' FROM numbers(100000000)</fill_query>
<fill_query>OPTIMIZE TABLE optimized_select_final FINAL</fill_query>
<query>SELECT max(x) FROM optimized_select_final FINAL where s = 'string' FORMAT Null</query>
<drop_query>DROP TABLE IF EXISTS optimized_select_final</drop_query>
</test>