@@ -29,6 +29,9 @@ INSERT INTO test03373_merge_wr_1 VALUES (2,1);
2929INSERT INTO test03373_merge_wr_2 VALUES (2 ,2 );
3030INSERT INTO test03373_merge_wr_3 VALUES (2 ,3 );
3131
32+ OPTIMIZE TABLE test03373_table_1 FINAL;
33+ OPTIMIZE TABLE test03373_table_2 FINAL;
34+
3235SELECT * FROM test03373_table_2 ORDER BY key, value;
3336
3437SELECT * FROM test03373_merge_ro ORDER BY key, value;
@@ -40,12 +43,14 @@ SELECT * FROM test03373_merge_wr_auto ORDER BY key, value;
4043
4144-- insert into test03373_table_2
4245INSERT INTO test03373_merge_wr_auto VALUES (3 ,1 );
46+ OPTIMIZE TABLE test03373_table_2 FINAL;
4347SELECT count () FROM test03373_table_2;
4448SELECT * FROM test03373_table_2 ORDER BY key, value;
4549
4650CREATE TABLE test03373_table_4 (key UInt32, value UInt32) ENGINE= MergeTree() ORDER BY key;
4751-- insert into test03373_table_4
4852INSERT INTO test03373_merge_wr_auto VALUES (3 ,2 );
53+ OPTIMIZE TABLE test03373_table_4 FINAL;
4954SELECT count () FROM test03373_table_2;
5055SELECT * FROM test03373_table_2 ORDER BY key, value;
5156SELECT count () FROM test03373_table_4;
@@ -54,6 +59,7 @@ SELECT * FROM test03373_table_4 ORDER BY key, value;
5459CREATE TABLE test03373_table_3 (key UInt32, value UInt32) ENGINE= MergeTree() ORDER BY key;
5560-- insert into test03373_table_4
5661INSERT INTO test03373_merge_wr_auto VALUES (3 ,3 );
62+ OPTIMIZE TABLE test03373_table_4 FINAL;
5763SELECT count () FROM test03373_table_2;
5864SELECT * FROM test03373_table_2 ORDER BY key, value;
5965SELECT count () FROM test03373_table_3;
0 commit comments