Simple window functions
(MDEV-8091)
|
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Technical task | Priority: | Major |
| Reporter: | Vicențiu Ciorbaru | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 10.2.0-5, 10.2.0-6, 10.2.0-7, 10.2.0-8, 10.2.2-1, 10.2.2-2, 10.2.2-3, 10.2.2-4 |
| Description |
|
The sliding window defined by RANGE BETWEEN N FOLLOWING and N PRECEDING does not add/remove rows in the correct order. Example:
The issue lies within the last partition. The removal of elements from the window is wrong. It removes an element 1 row after the one that should be removed.
The problem lies in the fact that the removal of elements from the sliding window is done incorectly. Again the same problem continues for the next row. Instead of removing the value 64, we are removing the value 128 (the row after the correct value). |
| Comments |
| Comment by Sergei Petrunia [ 2016-03-11 ] |
|
Fix pushed into the feature tree. |