ClickHouse/dbms/tests/queries/0_stateless/00763_create_query_as_table_engine_bug.sql
2019-06-07 18:41:24 +03:00

8 lines
333 B
SQL

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