ClickHouse/tests/queries/0_stateless/01763_max_distributed_depth.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
712 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: distributed
2022-02-15 14:36:31 +00:00
SET prefer_localhost_replica = 1;
2022-02-11 14:15:56 +00:00
DROP TABLE IF EXISTS tt6;
CREATE TABLE tt6
(
`id` UInt32,
`first_column` UInt32,
`second_column` UInt32,
`third_column` UInt32,
`status` String
)
2021-08-20 14:05:53 +00:00
ENGINE = Distributed('test_shard_localhost', '', 'tt7', rand());
2022-02-11 14:15:56 +00:00
DROP TABLE IF EXISTS tt7;
2021-08-20 14:05:53 +00:00
CREATE TABLE tt7 as tt6 ENGINE = Distributed('test_shard_localhost', '', 'tt6', rand());
2021-04-05 14:08:30 +00:00
INSERT INTO tt6 VALUES (1, 1, 1, 1, 'ok'); -- { serverError 581 }
2021-04-05 14:08:30 +00:00
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;
2022-02-11 14:15:56 +00:00
DROP TABLE tt7;