mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Add test.
This commit is contained in:
parent
0c2d3417e2
commit
41baae33d4
@ -0,0 +1,33 @@
|
|||||||
|
test2 0
|
||||||
|
test2 1
|
||||||
|
test2 2
|
||||||
|
test2 3
|
||||||
|
test2 4
|
||||||
|
test2 5
|
||||||
|
test2 6
|
||||||
|
test2 7
|
||||||
|
test2 8
|
||||||
|
test2 9
|
||||||
|
test2 10
|
||||||
|
test3 0
|
||||||
|
test3 1
|
||||||
|
test3 2
|
||||||
|
test3 3
|
||||||
|
test3 4
|
||||||
|
test3 5
|
||||||
|
test3 6
|
||||||
|
test3 7
|
||||||
|
test3 8
|
||||||
|
test3 9
|
||||||
|
test3 10
|
||||||
|
test5 0
|
||||||
|
test5 1
|
||||||
|
test5 2
|
||||||
|
test5 3
|
||||||
|
test5 4
|
||||||
|
test5 5
|
||||||
|
test5 6
|
||||||
|
test5 7
|
||||||
|
test5 8
|
||||||
|
test5 9
|
||||||
|
test5 10
|
17
tests/queries/0_stateless/01134_max_rows_to_group_by.sql
Normal file
17
tests/queries/0_stateless/01134_max_rows_to_group_by.sql
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
SET max_block_size = 1;
|
||||||
|
SET max_rows_to_group_by = 10;
|
||||||
|
SET group_by_overflow_mode = 'throw';
|
||||||
|
|
||||||
|
SELECT 'test1', number FROM system.numbers GROUP BY number; -- { serverError 158 }
|
||||||
|
|
||||||
|
SET group_by_overflow_mode = 'break';
|
||||||
|
SELECT 'test2', number FROM system.numbers GROUP BY number ORDER BY number;
|
||||||
|
|
||||||
|
SET max_rows_to_read = 500;
|
||||||
|
SELECT 'test3', number FROM system.numbers GROUP BY number ORDER BY number;
|
||||||
|
|
||||||
|
SET group_by_overflow_mode = 'any';
|
||||||
|
SELECT 'test4', number FROM numbers(1000) GROUP BY number ORDER BY number; -- { serverError 158 }
|
||||||
|
|
||||||
|
SET max_rows_to_read = 1000;
|
||||||
|
SELECT 'test5', number FROM numbers(1000) GROUP BY number ORDER BY number;
|
Loading…
Reference in New Issue
Block a user