mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
This commit is contained in:
parent
936d10f97d
commit
edfdaee247
@ -0,0 +1,4 @@
|
||||
0 2
|
||||
3 2
|
||||
6 2
|
||||
9 2
|
@ -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;
|
Loading…
Reference in New Issue
Block a user