[MCOL-393] window function in aggregate expression has wrong results Created: 2016-11-07 Updated: 2019-07-11 Resolved: 2019-07-11 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | DMLProc |
| Affects Version/s: | 1.0.4 |
| Fix Version/s: | 1.2.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Thompson (Inactive) | Assignee: | David Hall (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Epic Link: | ColumnStore Compatibility Improvements |
| Description |
|
With the following table:
the window query below which should in theory work gives wrong results for pct_won:
Rewriting the query to have the window function isolated in a subquery works around the issue:
|
| Comments |
| Comment by David Hall (Inactive) [ 2019-07-11 ] |
|
This bug was fixed as part of the long double efforts of SUM() and AVG() |