Bug #115481 | Test main.window_functions failing | ||
---|---|---|---|
Submitted: | 2 Jul 4:29 | Modified: | 17 Oct 13:19 |
Reporter: | Laurynas Biveinis (OCA) | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.38, 8.4.1, 9.0.0 | OS: | MacOS (14.5) |
Assigned to: | CPU Architecture: | ARM |
[2 Jul 4:29]
Laurynas Biveinis
[2 Jul 8:11]
MySQL Verification Team
Hello Laurynas, Thank you for the report and feedback! regards, Umesh
[2 Jul 13:31]
Dag Wanvik
Posted by developer: Duplicate of Bug#36746818. External bug #115373: https://bugs.mysql.com/bug.php?id=115373
[2 Jul 13:43]
Laurynas Biveinis
Same on 8.4.1 (as I cannot comment on the duplicate bug)
[3 Jul 6:27]
Laurynas Biveinis
Same on 9.0.0
[3 Jul 12:18]
Dag Wanvik
The problem with this query is that is non-deterministic; there is a partition specification, but no ordering. The partitioning performs a non-stable sort on the result set. So, unless a ordering is imposed by an ORDER BY clause in the window specification, the row order within the partition is non-derministic. So for a window function for which row order counts, e.g. FIRST_VALUE, the result is non-deterministic. The solution is to add sufficient ordering, or remove the test query. In this case the latter was chosen since we have a similar query *with* ordering right after it in the test.
[17 Oct 13:19]
Laurynas Biveinis
No longer reproducing under 8.0.40 / 8.4.3 / 9.1.0