Skip to content

Commit 73aee7e

Browse files
committed
Fix tests
1 parent 28abbe1 commit 73aee7e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/queries/0_stateless/03373_write_to_merge_table.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ INSERT INTO test03373_merge_wr_1 VALUES (2,1);
2929
INSERT INTO test03373_merge_wr_2 VALUES (2,2);
3030
INSERT INTO test03373_merge_wr_3 VALUES (2,3);
3131

32+
OPTIMIZE TABLE test03373_table_1 FINAL;
33+
OPTIMIZE TABLE test03373_table_2 FINAL;
34+
3235
SELECT * FROM test03373_table_2 ORDER BY key, value;
3336

3437
SELECT * 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
4245
INSERT INTO test03373_merge_wr_auto VALUES (3,1);
46+
OPTIMIZE TABLE test03373_table_2 FINAL;
4347
SELECT count() FROM test03373_table_2;
4448
SELECT * FROM test03373_table_2 ORDER BY key, value;
4549

4650
CREATE TABLE test03373_table_4 (key UInt32, value UInt32) ENGINE=MergeTree() ORDER BY key;
4751
-- insert into test03373_table_4
4852
INSERT INTO test03373_merge_wr_auto VALUES (3,2);
53+
OPTIMIZE TABLE test03373_table_4 FINAL;
4954
SELECT count() FROM test03373_table_2;
5055
SELECT * FROM test03373_table_2 ORDER BY key, value;
5156
SELECT count() FROM test03373_table_4;
@@ -54,6 +59,7 @@ SELECT * FROM test03373_table_4 ORDER BY key, value;
5459
CREATE TABLE test03373_table_3 (key UInt32, value UInt32) ENGINE=MergeTree() ORDER BY key;
5560
-- insert into test03373_table_4
5661
INSERT INTO test03373_merge_wr_auto VALUES (3,3);
62+
OPTIMIZE TABLE test03373_table_4 FINAL;
5763
SELECT count() FROM test03373_table_2;
5864
SELECT * FROM test03373_table_2 ORDER BY key, value;
5965
SELECT count() FROM test03373_table_3;

tests/queries/0_stateless/03409_write_to_merge_table_grants.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ $CLICKHOUSE_CLIENT --multiline --user $CLICKHOUSE_USER --password user_03409_pas
5454
"""
5555

5656
$CLICKHOUSE_CLIENT --multiline -q """
57+
OPTIMIZE TABLE test03409_table_1 FINAL;
58+
OPTIMIZE TABLE test03409_table_2 FINAL;
59+
OPTIMIZE TABLE test03409_table_3 FINAL;
5760
SELECT '*** Select from test03409_table_1 ***';
5861
SELECT * FROM test03409_table_1 ORDER BY key FORMAT CSV;
5962
SELECT '*** Select from test03409_table_2 ***';

0 commit comments

Comments
 (0)