Nikita Fomichev 2024-04-12 00:29:26 +02:00
parent 936d10f97d
commit edfdaee247
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,4 @@
0 2
3 2
6 2
9 2

View File

@ -0,0 +1,20 @@
-- https://github.com/ClickHouse/ClickHouse/issues/23865
SET allow_experimental_analyzer=1;
create table table_local engine = Memory AS select * from numbers(10);
create table table_dist engine = Distributed('test_cluster_two_shards', currentDatabase(),table_local) AS table_local;
with
x as (
select number
from numbers(10)
where number % 3=0),
y as (
select number, count()
from table_dist
where number in (select * from x)
group by number
)
select * from y
ORDER BY ALL;