mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
Extend 01568_window_functions_distributed for distributed_group_by_no_merge
This commit is contained in:
parent
e5cff95cc8
commit
6ac50ab9c5
@ -49,4 +49,12 @@ select groupArray(groupArray(number)) over (rows unbounded preceding) from remot
|
|||||||
[[0,3,6,0,3,6]]
|
[[0,3,6,0,3,6]]
|
||||||
[[0,3,6,0,3,6],[1,4,7,1,4,7]]
|
[[0,3,6,0,3,6],[1,4,7,1,4,7]]
|
||||||
[[0,3,6,0,3,6],[1,4,7,1,4,7],[2,5,8,2,5,8]]
|
[[0,3,6,0,3,6],[1,4,7,1,4,7],[2,5,8,2,5,8]]
|
||||||
|
select groupArray(groupArray(number)) over (rows unbounded preceding) from remote('127.0.0.{1,2}', '', t_01568) group by mod(number, 3) settings distributed_group_by_no_merge=1;
|
||||||
|
[[0,3,6]]
|
||||||
|
[[0,3,6],[1,4,7]]
|
||||||
|
[[0,3,6],[1,4,7],[2,5,8]]
|
||||||
|
[[0,3,6]]
|
||||||
|
[[0,3,6],[1,4,7]]
|
||||||
|
[[0,3,6],[1,4,7],[2,5,8]]
|
||||||
|
select groupArray(groupArray(number)) over (rows unbounded preceding) from remote('127.0.0.{1,2}', '', t_01568) group by mod(number, 3) settings distributed_group_by_no_merge=2; -- { serverError 48 }
|
||||||
drop table t_01568;
|
drop table t_01568;
|
||||||
|
@ -19,5 +19,7 @@ select distinct sum(number) over w, max(number) over w from remote('127.0.0.{1,2
|
|||||||
|
|
||||||
-- window functions + aggregation w/shards
|
-- window functions + aggregation w/shards
|
||||||
select groupArray(groupArray(number)) over (rows unbounded preceding) from remote('127.0.0.{1,2}', '', t_01568) group by mod(number, 3);
|
select groupArray(groupArray(number)) over (rows unbounded preceding) from remote('127.0.0.{1,2}', '', t_01568) group by mod(number, 3);
|
||||||
|
select groupArray(groupArray(number)) over (rows unbounded preceding) from remote('127.0.0.{1,2}', '', t_01568) group by mod(number, 3) settings distributed_group_by_no_merge=1;
|
||||||
|
select groupArray(groupArray(number)) over (rows unbounded preceding) from remote('127.0.0.{1,2}', '', t_01568) group by mod(number, 3) settings distributed_group_by_no_merge=2; -- { serverError 48 }
|
||||||
|
|
||||||
drop table t_01568;
|
drop table t_01568;
|
||||||
|
Loading…
Reference in New Issue
Block a user