ClickHouse/tests/queries/0_stateless/01053_drop_database_mat_view.sql
Alexander Tokmakov 7fcf20e48c enable more tests
2020-09-22 17:29:09 +03:00

11 lines
502 B
SQL

DROP DATABASE IF EXISTS some_tests;
CREATE DATABASE some_tests ENGINE=Ordinary; -- Different inner table name with Atomic
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;