mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Update test.py
This commit is contained in:
parent
cb5d929dcd
commit
5bfca13a4c
@ -404,6 +404,7 @@ def test_alter_detach_part(started_cluster, engine):
|
||||
main_node.query(f"INSERT INTO {database}.alter_detach VALUES (123)")
|
||||
if engine == "MergeTree":
|
||||
dummy_node.query(f"INSERT INTO {database}.alter_detach VALUES (456)")
|
||||
main_node.query(f"SYSTEM SYNC REPLICA {database}.alter_detach PULL")
|
||||
main_node.query(f"ALTER TABLE {database}.alter_detach DETACH PART '{part_name}'")
|
||||
detached_parts_query = f"SELECT name FROM system.detached_parts WHERE database='{database}' AND table='alter_detach'"
|
||||
assert main_node.query(detached_parts_query) == f"{part_name}\n"
|
||||
|
Loading…
Reference in New Issue
Block a user