Skip to content

Commit 83876cc

Browse files
Unflaky test_projection_rebuild_uses_only_required_columns
1 parent f2a9012 commit 83876cc

File tree

1 file changed

+2
-1
lines changed
  • tests/integration/test_projection_rebuild_with_required_columns

1 file changed

+2
-1
lines changed

tests/integration/test_projection_rebuild_with_required_columns/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ def started_cluster():
1919

2020

2121
def test_projection_rebuild_uses_only_required_columns(started_cluster):
22+
node1.query("drop table if exists tab")
2223
node1.query("create table tab (x UInt64, y UInt64, data String codec(NONE), v UInt8, projection p (select _part_offset order by y)) engine = ReplacingMergeTree(v) order by x settings allow_part_offset_column_in_projections=1, deduplicate_merge_projection_mode='rebuild';")
2324
node1.query("insert into tab select number, number, rightPad('', 100, 'a'), 0 from numbers(30000);")
2425
node1.query("optimize table tab final settings mutations_sync=2, alter_sync=2;")
2526
node1.query("system flush logs;")
2627

2728
uuid = node1.query("select uuid from system.tables where table = 'tab';").strip()
28-
cnt = node1.query("select count() from system.text_log where query_id = '{}::all_1_1_2' and message like '%Reading%from part p_%from the beginning of the part%'".format(uuid))
29+
cnt = node1.query("select count() from system.text_log where query_id like '{}::all_%_2' and message like '%Reading%from part p_%from the beginning of the part%'".format(uuid))
2930
assert (cnt == '2\n')
3031

0 commit comments

Comments
 (0)