mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 15:01:03 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
9 lines
446 B
SQL
9 lines
446 B
SQL
CREATE TABLE foo (key int, INDEX i1 key TYPE minmax GRANULARITY 1) Engine=MergeTree() ORDER BY key;
|
|
CREATE TABLE as_foo AS foo;
|
|
CREATE TABLE dist (key int, INDEX i1 key TYPE minmax GRANULARITY 1) Engine=Distributed(test_shard_localhost, currentDatabase(), 'foo'); -- { serverError 36 }
|
|
CREATE TABLE dist_as_foo Engine=Distributed(test_shard_localhost, currentDatabase(), 'foo') AS foo;
|
|
|
|
DROP TABLE foo;
|
|
DROP TABLE as_foo;
|
|
DROP TABLE dist_as_foo;
|