mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
31 lines
634 B
SQL
31 lines
634 B
SQL
-- Tags: distributed
|
|
|
|
DROP TABLE IF EXISTS tt6;
|
|
|
|
CREATE TABLE tt6
|
|
(
|
|
`id` UInt32,
|
|
`first_column` UInt32,
|
|
`second_column` UInt32,
|
|
`third_column` UInt32,
|
|
`status` String
|
|
|
|
)
|
|
ENGINE = Distributed('test_shard_localhost', '', 'tt7', rand());
|
|
|
|
CREATE TABLE tt7 as tt6 ENGINE = Distributed('test_shard_localhost', '', 'tt6', rand());
|
|
|
|
INSERT INTO tt6 VALUES (1, 1, 1, 1, 'ok'); -- { serverError 581 }
|
|
|
|
SELECT * FROM tt6; -- { serverError 581 }
|
|
|
|
SET max_distributed_depth = 0;
|
|
|
|
-- stack overflow
|
|
INSERT INTO tt6 VALUES (1, 1, 1, 1, 'ok'); -- { serverError 306}
|
|
|
|
-- stack overflow
|
|
SELECT * FROM tt6; -- { serverError 306 }
|
|
|
|
DROP TABLE tt6;
|