ClickHouse/tests/queries/0_stateless/02343_create_empty_as_select.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
480 B
MySQL
Raw Normal View History

2022-06-21 13:03:58 +00:00
drop table if exists t;
drop table if exists mv;
create table t engine=Memory empty; -- { clientError SYNTAX_ERROR }
create table t engine=Memory empty as; -- { clientError SYNTAX_ERROR }
create table t engine=Memory as; -- { clientError SYNTAX_ERROR }
create table t engine=Memory empty as select 1;
show create table t;
select count() from t;
create materialized view mv engine=Memory empty as select 1;
show create mv;
select count() from mv;
drop table t;
drop table mv;