[MDEV-9877] Window functions: wrong sort criteria is used Created: 2016-04-06 Updated: 2016-04-14 Resolved: 2016-04-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
EXPLAIN shows:
In debugger I put a breakpoint into the loop in order_window_funcs_by_window_specs and see:
Sorting on just t1.c is wrong. RANK() function needs sorting by t1.c, t1.a. |
| Comments |
| Comment by Igor Babaev [ 2016-04-06 ] |
|
Sergey, This is not a bug. |
| Comment by Sergei Petrunia [ 2016-04-06 ] |
|
Ok, I was using the list incorrectly, then. Will fix now. |