ClickHouse/tests/queries/0_stateless/01053_drop_database_mat_view.sql

14 lines
566 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-parallel
2019-12-29 16:52:22 +00:00
DROP DATABASE IF EXISTS some_tests;
2022-06-23 07:59:13 +00:00
set allow_deprecated_database_ordinary=1;
2020-09-22 11:56:40 +00:00
CREATE DATABASE some_tests ENGINE=Ordinary; -- Different inner table name with Atomic
2019-12-29 16:52:22 +00:00
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;