tests: drop existing view in test_materialized_mysql_database

This should avoid failures of other tests in case of some previous test
failed

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2023-07-14 05:57:46 +02:00
parent 4bb95305a4
commit 4f6d59ce7f

View File

@ -992,6 +992,7 @@ def select_without_columns(clickhouse_node, mysql_node, service_name):
)
check_query(clickhouse_node, "SHOW TABLES FROM db FORMAT TSV", "t\n")
clickhouse_node.query("SYSTEM STOP MERGES db.t")
clickhouse_node.query("DROP VIEW v IF EXISTS")
clickhouse_node.query("CREATE VIEW v AS SELECT * FROM db.t")
mysql_node.query("INSERT INTO db.t VALUES (1, 1), (2, 2)")
mysql_node.query("DELETE FROM db.t WHERE a = 2;")