[MDEV-15296] wrong result with window function inside a subquery Created: 2018-02-13 Updated: 2023-12-07 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alice Sherepa | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | 11.0-sel | ||
| Description |
|
Expected result: {1,2} |
| Comments |
| Comment by Varun Gupta (Inactive) [ 2019-04-29 ] | ||||||||||||||||
|
Here we see that it shows that SELECT #2 is reduced during optimization, this is only expected for constant items. | ||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2019-04-29 ] | ||||||||||||||||
|
Patch | ||||||||||||||||
| Comment by Oleksandr Byelkin [ 2019-04-30 ] | ||||||||||||||||
|
Please check my answer. | ||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2020-08-25 ] | ||||||||||||||||
|
This was the review input from sanja |