Nikita Fomichev 2024-04-03 10:06:11 +02:00
parent 809461ccda
commit a401d328fd
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1 @@
1000 100000

View File

@ -0,0 +1,12 @@
-- https://github.com/ClickHouse/ClickHouse/issues/10276
SELECT
sum(x.n) as n,
sum(z.n) as n2
FROM
(
SELECT 1000 AS n,1 as id
) AS x
join (select 10000 as n,1 as id) as y
on x.id = y.id
left join (select 100000 as n,1 as id) as z
on x.id = z.id;