[MDEV-10861] Window functions tests are non-deterministic (prone to sporadic failures) Created: 2016-09-21  Updated: 2016-09-24  Resolved: 2016-09-24

Status: Closed
Project: MariaDB Server
Component/s: Optimizer - Window functions, Tests
Affects Version/s: 10.2
Fix Version/s: 10.2.2

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Vicențiu Ciorbaru
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-9896 Testing for window functions Open

 Description   

All SELECTs which don't have explicit (and deterministic) ORDER BY clause should be preceded by --sorted_result. Otherwise they will produce sporadic failures, e.g.

CURRENT_TEST: main.win
--- /data/bld/10.2/mysql-test/r/win.result	2016-09-21 18:52:27.000000000 +0300
+++ /data/bld/10.2/mysql-test/r/win.reject	2016-09-22 00:01:47.668443074 +0300
@@ -86,10 +86,10 @@
 2	0	1
 3	1	3
 4	1	3
-8	2	5
 5	2	5
 6	2	5
 7	2	5
+8	2	5
 9	4	9
 10	4	9
 select pk, a, rank() over (order by a desc) from t2;
@@ -98,10 +98,10 @@
 2	0	9
 3	1	7
 4	1	7
-8	2	3
 5	2	3
 6	2	3
 7	2	3
+8	2	3
 9	4	1
 10	4	1
 drop table t2;

etc.



 Comments   
Comment by Elena Stepanova [ 2016-09-21 ]

Also, I would really want they were called something more specific than win.test and win_*.test.

Comment by Vicențiu Ciorbaru [ 2016-09-24 ]

Tests should now not have any non-deterministic results.

Generated at Thu Feb 08 07:45:29 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.