[MDEV-11745] Wrong results upon using window function with min/max aggregation Created: 2017-01-08 Updated: 2017-02-10 Resolved: 2017-02-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 10.2-rc | ||
| Issue Links: |
|
||||||||
| Description |
|
Note: results below are from 10.2 348ccb6f038a6c1.
Without the subquery, the result is different:
PostgreSQL 9.4 returns the same for both queries:
|
| Comments |
| Comment by Igor Babaev [ 2017-02-08 ] | ||||||||||||||||||||
|
We also have the following problem with window functions using min/max aggregations:
The cause of both problems is the same: splitting arguments of aggregate functions used in window functions has not been done | ||||||||||||||||||||
| Comment by Igor Babaev [ 2017-02-10 ] | ||||||||||||||||||||
|
The fix for this bug was pushed into the 10.2 tree. |