ClickHouse/dbms/tests/queries/0_stateless/00763_create_query_as_table_engine_bug.sql
Nikolai Kochetov 14ff6ae6d4 Added test.
2018-11-28 20:13:38 +03:00

9 lines
339 B
SQL

drop table if exists test.t;
drop table if exists test.td;
create table test.t (val UInt32) engine = MergeTree order by val;
create table test.td engine = Distributed(test_cluster, 'test', 't') as test.t;
select engine from system.tables where database = 'test' and name = 'td';
drop table if exists test.t;
drop table if exists test.td;