mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
dbms: added more tests [#METR-14604].
This commit is contained in:
parent
819f13801d
commit
6f10046d64
@ -0,0 +1,48 @@
|
|||||||
|
0 2 1
|
||||||
|
1 2 3
|
||||||
|
2 2 5
|
||||||
|
3 2 7
|
||||||
|
4 2 9
|
||||||
|
5 2 11
|
||||||
|
6 2 13
|
||||||
|
7 2 15
|
||||||
|
8 2 17
|
||||||
|
9 2 19
|
||||||
|
|
||||||
|
0 500000 499999
|
||||||
|
0 2 1
|
||||||
|
1 2 3
|
||||||
|
2 2 5
|
||||||
|
3 2 7
|
||||||
|
4 2 9
|
||||||
|
5 2 11
|
||||||
|
6 2 13
|
||||||
|
7 2 15
|
||||||
|
8 2 17
|
||||||
|
9 2 19
|
||||||
|
|
||||||
|
0 500000 499999
|
||||||
|
0 2 1
|
||||||
|
1 2 3
|
||||||
|
2 2 5
|
||||||
|
3 2 7
|
||||||
|
4 2 9
|
||||||
|
5 2 11
|
||||||
|
6 2 13
|
||||||
|
7 2 15
|
||||||
|
8 2 17
|
||||||
|
9 2 19
|
||||||
|
|
||||||
|
0 200002 200001
|
||||||
|
0 2 1
|
||||||
|
1 2 3
|
||||||
|
2 2 5
|
||||||
|
3 2 7
|
||||||
|
4 2 9
|
||||||
|
5 2 11
|
||||||
|
6 2 13
|
||||||
|
7 2 15
|
||||||
|
8 2 17
|
||||||
|
9 2 19
|
||||||
|
|
||||||
|
0 500000 499999
|
15
dbms/tests/queries/0_stateless/00107_totals_after_having.sql
Normal file
15
dbms/tests/queries/0_stateless/00107_totals_after_having.sql
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
SET max_rows_to_group_by = 100000;
|
||||||
|
SET max_block_size = 100001;
|
||||||
|
SET group_by_overflow_mode = 'any';
|
||||||
|
|
||||||
|
SET totals_mode = 'after_having_auto';
|
||||||
|
SELECT intDiv(number, 2) AS k, count(), argMax(toString(number), number) FROM (SELECT number FROM system.numbers LIMIT 500000) GROUP BY k WITH TOTALS ORDER BY k LIMIT 10;
|
||||||
|
|
||||||
|
SET totals_mode = 'after_having_inclusive';
|
||||||
|
SELECT intDiv(number, 2) AS k, count(), argMax(toString(number), number) FROM (SELECT number FROM system.numbers LIMIT 500000) GROUP BY k WITH TOTALS ORDER BY k LIMIT 10;
|
||||||
|
|
||||||
|
SET totals_mode = 'after_having_exclusive';
|
||||||
|
SELECT intDiv(number, 2) AS k, count(), argMax(toString(number), number) FROM (SELECT number FROM system.numbers LIMIT 500000) GROUP BY k WITH TOTALS ORDER BY k LIMIT 10;
|
||||||
|
|
||||||
|
SET totals_mode = 'before_having';
|
||||||
|
SELECT intDiv(number, 2) AS k, count(), argMax(toString(number), number) FROM (SELECT number FROM system.numbers LIMIT 500000) GROUP BY k WITH TOTALS ORDER BY k LIMIT 10;
|
Loading…
Reference in New Issue
Block a user