ClickHouse/dbms/tests/queries/0_stateless/00987_distributed_stack_overflow.sql

14 lines
514 B
MySQL
Raw Normal View History

2019-08-10 18:01:35 +00:00
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 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 distr1;
DROP TABLE distr2;