mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Upd 02337_join_analyze_stuck
This commit is contained in:
parent
6c15db9b11
commit
33508507bf
@ -0,0 +1,26 @@
|
|||||||
|
WITH
|
||||||
|
x AS
|
||||||
|
(
|
||||||
|
SELECT number
|
||||||
|
FROM numbers(10)
|
||||||
|
),
|
||||||
|
cross_sales AS
|
||||||
|
(
|
||||||
|
SELECT 1 AS xx
|
||||||
|
FROM
|
||||||
|
x,
|
||||||
|
x AS d1,
|
||||||
|
x AS d2,
|
||||||
|
x AS d3,
|
||||||
|
x AS d4,
|
||||||
|
x AS d5,
|
||||||
|
x AS d6,
|
||||||
|
x AS d7,
|
||||||
|
x AS d8,
|
||||||
|
x AS d9
|
||||||
|
WHERE x.number = d9.number
|
||||||
|
)
|
||||||
|
SELECT xx
|
||||||
|
FROM
|
||||||
|
cross_sales
|
||||||
|
WHERE xx = 2000
|
@ -1,9 +1,5 @@
|
|||||||
-- Tags: long
|
|
||||||
|
|
||||||
-- https://github.com/ClickHouse/ClickHouse/issues/21557
|
-- https://github.com/ClickHouse/ClickHouse/issues/21557
|
||||||
|
|
||||||
SET max_analyze_depth = 1000;
|
|
||||||
|
|
||||||
EXPLAIN SYNTAX
|
EXPLAIN SYNTAX
|
||||||
WITH
|
WITH
|
||||||
x AS ( SELECT number FROM numbers(10) ),
|
x AS ( SELECT number FROM numbers(10) ),
|
||||||
@ -12,4 +8,4 @@ WITH
|
|||||||
FROM x, x AS d1, x AS d2, x AS d3, x AS d4, x AS d5, x AS d6, x AS d7, x AS d8, x AS d9
|
FROM x, x AS d1, x AS d2, x AS d3, x AS d4, x AS d5, x AS d6, x AS d7, x AS d8, x AS d9
|
||||||
WHERE x.number = d9.number
|
WHERE x.number = d9.number
|
||||||
)
|
)
|
||||||
SELECT xx FROM cross_sales WHERE xx = 2000; -- { serverError TOO_DEEP_RECURSION }
|
SELECT xx FROM cross_sales WHERE xx = 2000;
|
||||||
|
Loading…
Reference in New Issue
Block a user