2020-10-23 09:05:57 +00:00
|
|
|
<test>
|
|
|
|
<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)
|
|
|
|
ENGINE = ReplacingMergeTree()
|
|
|
|
PARTITION BY toYYYYMM(t) ORDER BY x
|
|
|
|
</create_query>
|
|
|
|
|
2020-10-30 14:48:59 +00:00
|
|
|
<fill_query>INSERT INTO optimized_select_final SELECT toDate('2000-01-01'), number FROM numbers(5000000)</fill_query>
|
|
|
|
<fill_query>INSERT INTO optimized_select_final SELECT toDate('2020-01-01'), number FROM numbers(5000000)</fill_query>
|
|
|
|
<fill_query>INSERT INTO optimized_select_final SELECT toDate('2021-01-01'), number FROM numbers(5000000)</fill_query>
|
|
|
|
<fill_query>INSERT INTO optimized_select_final SELECT toDate('2022-01-01'), number FROM numbers(5000000)</fill_query>
|
2020-10-23 09:05:57 +00:00
|
|
|
|
2020-10-27 11:42:26 +00:00
|
|
|
<fill_query>OPTIMIZE TABLE optimized_select_final</fill_query>
|
|
|
|
|
2020-10-29 11:03:50 +00:00
|
|
|
<query>SELECT * FROM optimized_select_final FINAL FORMAT Null</query>
|
2020-10-23 09:05:57 +00:00
|
|
|
|
|
|
|
<drop_query>DROP TABLE IF EXISTS optimized_select_final</drop_query>
|
|
|
|
|
|
|
|
</test>
|