[MCOL-3659] AVG_DISTINCT Window Function returns values with incorrect scale Created: 2019-12-10 Updated: 2019-12-12 Resolved: 2019-12-11 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.4.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Gagan Goel (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2019-06 |
| Description |
|
The following example demonstrates the incorrect scale of the resulting values, which is reduced by a factor of 10^4:
|
| Comments |
| Comment by Daniel Lee (Inactive) [ 2019-12-11 ] | ||||||||||||||||||||||||||||
|
Build verified: 1.4.2-1 source Made build from latest Github source server: MENT-532 install cdb for windows containers on Azure installed windbg with chocolatey, set PATH before MTR call engine Merge pull request #970 from LinuxJedi/fix-warnings Fix warnings found in DEBUG combined build Reproduced the issue in 1.4.1-1 MariaDB [tpch1m]> select avg(l_extendedprice) from lineitem;
----------------------
---------------------- select avg(distinct l_extendedprice) over (partition by l_orderkey) from lineitem where l_orderkey < 1000 order by l_orderkey; .
-------------------------------------------------------------- Verified fix in 1.4.2-1 select avg(distinct l_extendedprice) over (partition by l_orderkey) from lineitem where l_orderkey < 1000 order by l_orderkey; .
-------------------------------------------------------------- |