mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Added test.
This commit is contained in:
parent
87a0b40ace
commit
f5ba4f4ed8
@ -0,0 +1,289 @@
|
|||||||
|
20
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
distributed_group_by_no_merge = 0, extremes = 0
|
||||||
|
10
|
||||||
|
-
|
||||||
|
10
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
------
|
||||||
|
10
|
||||||
|
-
|
||||||
|
10
|
||||||
|
-
|
||||||
|
20
|
||||||
|
-
|
||||||
|
20
|
||||||
|
------
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
distributed_group_by_no_merge = 1, extremes = 0
|
||||||
|
10
|
||||||
|
-
|
||||||
|
10
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
------
|
||||||
|
10
|
||||||
|
-
|
||||||
|
10
|
||||||
|
-
|
||||||
|
20
|
||||||
|
-
|
||||||
|
20
|
||||||
|
------
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
distributed_group_by_no_merge = 0, extremes = 1
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
------
|
||||||
|
|
||||||
|
------
|
||||||
|
------
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
20
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
20
|
||||||
|
------
|
||||||
|
|
||||||
|
------
|
||||||
|
------
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
20
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
20
|
||||||
|
distributed_group_by_no_merge = 1, extremes = 1
|
||||||
|
|
||||||
|
distributed_group_by_no_merge = 1, extremes = 1
|
||||||
|
distributed_group_by_no_merge = 1, extremes = 1
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
------
|
||||||
|
|
||||||
|
------
|
||||||
|
------
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
20
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
20
|
||||||
|
------
|
||||||
|
|
||||||
|
------
|
||||||
|
------
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
|
||||||
|
10
|
||||||
|
10
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
20
|
||||||
|
-
|
||||||
|
|
||||||
|
-
|
||||||
|
-
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
|
||||||
|
20
|
||||||
|
20
|
@ -0,0 +1,106 @@
|
|||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.{1,2}', system.numbers) LIMIT 5 SETTINGS distributed_group_by_no_merge = 1);
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.{1,2}', system.numbers) LIMIT 5 SETTINGS distributed_group_by_no_merge = 1) with totals;
|
||||||
|
|
||||||
|
SELECT 'distributed_group_by_no_merge = 0, extremes = 0';
|
||||||
|
SET distributed_group_by_no_merge = 0, extremes = 0;
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.1', system.numbers) LIMIT 5);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.2', system.numbers) LIMIT 5);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.1', system.numbers) LIMIT 5) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.2', system.numbers) LIMIT 5) with totals;
|
||||||
|
SELECT '------';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.1', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.2', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{1,2}', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{2,3}', numbers(5)) with totals);
|
||||||
|
SELECT '------';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.1', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.2', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{1,2}', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{2,3}', numbers(5))) with totals;
|
||||||
|
|
||||||
|
SELECT 'distributed_group_by_no_merge = 1, extremes = 0';
|
||||||
|
SET distributed_group_by_no_merge = 1, extremes = 0;
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.1', system.numbers) LIMIT 5);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.2', system.numbers) LIMIT 5);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.1', system.numbers) LIMIT 5) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.2', system.numbers) LIMIT 5) with totals;
|
||||||
|
SELECT '------';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.1', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.2', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{1,2}', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{2,3}', numbers(5)) with totals);
|
||||||
|
SELECT '------';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.1', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.2', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{1,2}', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{2,3}', numbers(5))) with totals;
|
||||||
|
|
||||||
|
SELECT 'distributed_group_by_no_merge = 0, extremes = 1';
|
||||||
|
SET distributed_group_by_no_merge = 0, extremes = 1;
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.1', system.numbers) LIMIT 5);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.2', system.numbers) LIMIT 5);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.1', system.numbers) LIMIT 5) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.2', system.numbers) LIMIT 5) with totals;
|
||||||
|
SELECT '------';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.1', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.2', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{1,2}', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{2,3}', numbers(5)) with totals);
|
||||||
|
SELECT '------';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.1', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.2', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{1,2}', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{2,3}', numbers(5))) with totals;
|
||||||
|
|
||||||
|
SELECT 'distributed_group_by_no_merge = 1, extremes = 1';
|
||||||
|
SET distributed_group_by_no_merge = 1, extremes = 1;
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.1', system.numbers) LIMIT 5);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.2', system.numbers) LIMIT 5);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.1', system.numbers) LIMIT 5) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(number) FROM (SELECT * FROM remote('127.0.0.2', system.numbers) LIMIT 5) with totals;
|
||||||
|
SELECT '------';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.1', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.2', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{1,2}', numbers(5)) with totals);
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{2,3}', numbers(5)) with totals);
|
||||||
|
SELECT '------';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.1', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.2', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{1,2}', numbers(5))) with totals;
|
||||||
|
SELECT '-';
|
||||||
|
SELECT sum(s) FROM (SELECT sum(number) as s FROM remote('127.0.0.{2,3}', numbers(5))) with totals;
|
Loading…
Reference in New Issue
Block a user