Update test.py

This commit is contained in:
Alexander Tokmakov 2024-01-10 11:07:13 +01:00 committed by GitHub
parent 4cacfa6b43
commit b954667ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,6 +338,8 @@ def test_alter_drop_part(started_cluster, engine):
main_node.query(f"INSERT INTO {database}.alter_drop_part VALUES (123)") main_node.query(f"INSERT INTO {database}.alter_drop_part VALUES (123)")
if engine == "MergeTree": if engine == "MergeTree":
dummy_node.query(f"INSERT INTO {database}.alter_drop_part VALUES (456)") dummy_node.query(f"INSERT INTO {database}.alter_drop_part VALUES (456)")
else:
main_node.query(f"SYSTEM SYNC REPLICA {database}.alter_drop_part PULL")
main_node.query(f"ALTER TABLE {database}.alter_drop_part DROP PART '{part_name}'") main_node.query(f"ALTER TABLE {database}.alter_drop_part DROP PART '{part_name}'")
assert main_node.query(f"SELECT CounterID FROM {database}.alter_drop_part") == "" assert main_node.query(f"SELECT CounterID FROM {database}.alter_drop_part") == ""
if engine == "ReplicatedMergeTree": if engine == "ReplicatedMergeTree":