mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Added failing tests
This commit is contained in:
parent
06ba85fdf2
commit
7d480ffa3d
@ -0,0 +1 @@
|
||||
1
|
7
tests/queries/0_stateless/01131_max_rows_to_sort.sql
Normal file
7
tests/queries/0_stateless/01131_max_rows_to_sort.sql
Normal file
@ -0,0 +1,7 @@
|
||||
SET max_rows_to_sort = 100;
|
||||
SELECT * FROM system.numbers ORDER BY number; -- { serverError 396 }
|
||||
|
||||
SET sort_overflow_mode = 'break';
|
||||
SET max_block_size = 1000;
|
||||
|
||||
SELECT count() >= 100 AND count() <= 1000 FROM (SELECT * FROM system.numbers ORDER BY number);
|
@ -0,0 +1,6 @@
|
||||
19
|
||||
20
|
||||
30
|
||||
19
|
||||
20
|
||||
21
|
17
tests/queries/0_stateless/01132_max_rows_to_read.sql
Normal file
17
tests/queries/0_stateless/01132_max_rows_to_read.sql
Normal file
@ -0,0 +1,17 @@
|
||||
SET max_block_size = 10;
|
||||
SET max_rows_to_read = 20;
|
||||
SET read_overflow_mode = 'throw';
|
||||
|
||||
SELECT count() FROM numbers(30); -- { serverError 158 }
|
||||
SELECT count() FROM numbers(19);
|
||||
SELECT count() FROM numbers(20);
|
||||
SELECT count() FROM numbers(21); -- { serverError 158 }
|
||||
|
||||
SET read_overflow_mode = 'break';
|
||||
|
||||
SELECT count() FROM numbers(19);
|
||||
SELECT count() FROM numbers(20);
|
||||
SELECT count() FROM numbers(21);
|
||||
SELECT count() FROM numbers(29); -- one extra block is read and it is Ok.
|
||||
SELECT count() FROM numbers(30);
|
||||
SELECT count() FROM numbers(31);
|
158
tests/queries/0_stateless/01133_max_result_rows.reference
Normal file
158
tests/queries/0_stateless/01133_max_result_rows.reference
Normal file
@ -0,0 +1,158 @@
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
15
tests/queries/0_stateless/01133_max_result_rows.sql
Normal file
15
tests/queries/0_stateless/01133_max_result_rows.sql
Normal file
@ -0,0 +1,15 @@
|
||||
SET max_block_size = 10;
|
||||
SET max_result_rows = 20;
|
||||
SET result_overflow_mode = 'throw';
|
||||
|
||||
SELECT DISTINCT intDiv(number, 10) FROM numbers(300); -- { serverError 396 }
|
||||
SELECT DISTINCT intDiv(number, 10) FROM numbers(190);
|
||||
SELECT DISTINCT intDiv(number, 10) FROM numbers(200);
|
||||
SELECT DISTINCT intDiv(number, 10) FROM numbers(210); -- { serverError 396 }
|
||||
|
||||
SET result_overflow_mode = 'break';
|
||||
|
||||
SELECT DISTINCT intDiv(number, 10) FROM numbers(300);
|
||||
SELECT DISTINCT intDiv(number, 10) FROM numbers(190);
|
||||
SELECT DISTINCT intDiv(number, 10) FROM numbers(200);
|
||||
SELECT DISTINCT intDiv(number, 10) FROM numbers(210);
|
13
tests/queries/0_stateless/01134_set_overflow_mode.reference
Normal file
13
tests/queries/0_stateless/01134_set_overflow_mode.reference
Normal file
@ -0,0 +1,13 @@
|
||||
1
|
||||
0
|
||||
1
|
||||
0
|
||||
---
|
||||
1
|
||||
0
|
||||
1
|
||||
0
|
||||
1
|
||||
0
|
||||
1
|
||||
0
|
17
tests/queries/0_stateless/01134_set_overflow_mode.sql
Normal file
17
tests/queries/0_stateless/01134_set_overflow_mode.sql
Normal file
@ -0,0 +1,17 @@
|
||||
SET max_block_size = 10;
|
||||
SET max_rows_in_set = 20;
|
||||
SET set_overflow_mode = 'throw';
|
||||
|
||||
SELECT arrayJoin([5, 25]) IN (SELECT DISTINCT toUInt8(intDiv(number, 10)) FROM numbers(300)); -- { serverError 191 }
|
||||
SELECT arrayJoin([5, 25]) IN (SELECT DISTINCT toUInt8(intDiv(number, 10)) FROM numbers(190));
|
||||
SELECT arrayJoin([5, 25]) IN (SELECT DISTINCT toUInt8(intDiv(number, 10)) FROM numbers(200));
|
||||
SELECT arrayJoin([5, 25]) IN (SELECT DISTINCT toUInt8(intDiv(number, 10)) FROM numbers(210)); -- { serverError 191 }
|
||||
|
||||
SET set_overflow_mode = 'break';
|
||||
|
||||
SELECT '---';
|
||||
|
||||
SELECT arrayJoin([5, 25]) IN (SELECT DISTINCT toUInt8(intDiv(number, 10)) FROM numbers(300));
|
||||
SELECT arrayJoin([5, 25]) IN (SELECT DISTINCT toUInt8(intDiv(number, 10)) FROM numbers(190));
|
||||
SELECT arrayJoin([5, 25]) IN (SELECT DISTINCT toUInt8(intDiv(number, 10)) FROM numbers(200));
|
||||
SELECT arrayJoin([5, 25]) IN (SELECT DISTINCT toUInt8(intDiv(number, 10)) FROM numbers(210));
|
Loading…
Reference in New Issue
Block a user