diff --git a/dbms/tests/queries/0_stateless/01053_drop_database_mat_view.reference b/dbms/tests/queries/0_stateless/01053_drop_database_mat_view.reference new file mode 100644 index 00000000000..bb70980e620 --- /dev/null +++ b/dbms/tests/queries/0_stateless/01053_drop_database_mat_view.reference @@ -0,0 +1,4 @@ +my_table +.inner.my_materialized_view +my_materialized_view +my_table diff --git a/dbms/tests/queries/0_stateless/01053_drop_database_mat_view.sql b/dbms/tests/queries/0_stateless/01053_drop_database_mat_view.sql new file mode 100644 index 00000000000..d5763461b42 --- /dev/null +++ b/dbms/tests/queries/0_stateless/01053_drop_database_mat_view.sql @@ -0,0 +1,10 @@ +DROP DATABASE IF EXISTS some_tests; +CREATE DATABASE some_tests; + +create table some_tests.my_table ENGINE = MergeTree(day, (day), 8192) as select today() as day, 'mystring' as str; +show tables from some_tests; +create materialized view some_tests.my_materialized_view ENGINE = MergeTree(day, (day), 8192) as select * from some_tests.my_table; +show tables from some_tests; +select * from some_tests.my_materialized_view; + +DROP DATABASE some_tests;