Added a test from andrea-s

This commit is contained in:
Alexey Milovidov 2019-12-29 19:52:22 +03:00
parent 55a72a5485
commit 966f46cfab
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,4 @@
my_table
.inner.my_materialized_view
my_materialized_view
my_table

View File

@ -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;