mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 04:32:33 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
19 lines
694 B
SQL
19 lines
694 B
SQL
DROP TABLE IF EXISTS distr0;
|
|
DROP TABLE IF EXISTS distr1;
|
|
DROP TABLE IF EXISTS distr2;
|
|
|
|
CREATE TABLE distr (x UInt8) ENGINE = Distributed(test_shard_localhost, currentDatabase(), distr); -- { serverError 269 }
|
|
|
|
CREATE TABLE distr0 (x UInt8) ENGINE = Distributed(test_shard_localhost, '', distr0);
|
|
SELECT * FROM distr0; -- { serverError 306 }
|
|
|
|
CREATE TABLE distr1 (x UInt8) ENGINE = Distributed(test_shard_localhost, currentDatabase(), distr2);
|
|
CREATE TABLE distr2 (x UInt8) ENGINE = Distributed(test_shard_localhost, currentDatabase(), distr1);
|
|
|
|
SELECT * FROM distr1; -- { serverError 306 }
|
|
SELECT * FROM distr2; -- { serverError 306 }
|
|
|
|
DROP TABLE distr0;
|
|
DROP TABLE distr1;
|
|
DROP TABLE distr2;
|