[MDEV-17525] Window functions not working in ONLY_FULL_GROUP_BY mode Created: 2018-10-23 Updated: 2018-10-31 Resolved: 2018-10-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions |
| Affects Version/s: | 10.3.9, 10.2, 10.3 |
| Fix Version/s: | 10.3.11, 10.2.19 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jonas Staudenmeir | Assignee: | Varun Gupta (Inactive) |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Environment: |
Ubuntu 18.04.1 |
||
| Description |
|
Window functions don't seem to work in ONLY_FULL_GROUP_BY mode. Using the example queries from the documentation:
The SELECT query fails with an error:
From my understanding, this is a valid query. It works on MySQL 8.0 (fiddle) and PostgreSQL (fiddle). |
| Comments |
| Comment by Varun Gupta (Inactive) [ 2018-10-24 ] |
|
Patch |
| Comment by Sergei Petrunia [ 2018-10-25 ] |
|
Ok to push. |