2022-08-29 09:43:48 +00:00
|
|
|
-- Tags: long
|
|
|
|
|
2022-08-18 09:13:47 +00:00
|
|
|
-- https://github.com/ClickHouse/ClickHouse/issues/21557
|
|
|
|
|
2022-09-13 08:27:22 +00:00
|
|
|
EXPLAIN SYNTAX
|
|
|
|
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 FORMAT Null;
|
|
|
|
|
|
|
|
SET max_analyze_depth = 1;
|
|
|
|
|
2022-08-18 09:13:47 +00:00
|
|
|
EXPLAIN SYNTAX
|
|
|
|
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
|
|
|
|
)
|
2022-08-26 14:26:36 +00:00
|
|
|
SELECT xx FROM cross_sales WHERE xx = 2000;
|