[MDEV-10868] Syntax Error when selecting from a view with compound window function Created: 2016-09-22 Updated: 2017-01-19 Resolved: 2017-01-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions, Parser |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vicențiu Ciorbaru | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The following query works:
However this one fails with a strange parser error:
Note that the following views however work:
|
| Comments |
| Comment by Vicențiu Ciorbaru [ 2016-09-22 ] | ||||||||||
| Comment by Sergei Petrunia [ 2016-09-28 ] | ||||||||||
|
Even a basic example of a view with a window function causes a name resolution error:
| ||||||||||
| Comment by Sergei Petrunia [ 2016-09-28 ] | ||||||||||
|
I was trying to check for a possible issue we've discussed on the optimizer call: > A view that uses window functions must not be executed with ALGORITHM=MERGE This needs to be checked when the name resolution issue is fixed. | ||||||||||
| Comment by Elena Stepanova [ 2016-12-16 ] | ||||||||||
|
psergey, cvicentiu, should it still be open? There is a commit in the main tree:
| ||||||||||
| Comment by Sergei Petrunia [ 2017-01-19 ] | ||||||||||
|
> I was trying to check for a possible issue we've discussed on the optimizer call: > This needs to be checked when the name resolution issue is fixed. Now checked, and it's fine: VIEWs with window functions do not use merge algorithm. | ||||||||||
| Comment by Sergei Petrunia [ 2017-01-19 ] | ||||||||||
|
The fix for this bug was pushed into 10.2.3. |