Merge pull request #52103 from azat/tests/test_materialized_mysql_database

tests: drop existing view in test_materialized_mysql_database
This commit is contained in:
Alexey Milovidov 2023-07-22 03:41:52 +03:00 committed by GitHub
commit 7af9af1a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 IF EXISTS v")
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;")