add 'stop merges' to test

This commit is contained in:
Anton Popov 2021-04-23 00:54:45 +03:00 committed by GitHub
parent 5b5030a888
commit 3016bda264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,11 +10,15 @@ SETTINGS vertical_merge_algorithm_min_rows_to_activate = 1,
min_bytes_for_wide_part = 0, min_bytes_for_wide_part = 0,
merge_max_block_size = 16; merge_max_block_size = 16;
SYSTEM STOP MERGES replacing_table;
INSERT INTO replacing_table SELECT number, number, number from numbers(16); INSERT INTO replacing_table SELECT number, number, number from numbers(16);
INSERT INTO replacing_table SELECT 100, number, number from numbers(16); INSERT INTO replacing_table SELECT 100, number, number from numbers(16);
SELECT sum(a), count() FROM replacing_table; SELECT sum(a), count() FROM replacing_table;
SYSTEM START MERGES replacing_table;
OPTIMIZE TABLE replacing_table FINAL; OPTIMIZE TABLE replacing_table FINAL;
SELECT sum(a), count() FROM replacing_table; SELECT sum(a), count() FROM replacing_table;