[MCOL-3304] Window functions in queries with embedded selects produce bad numbers Created: 2019-05-10 Updated: 2019-10-28 Resolved: 2019-06-20 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr |
| Affects Version/s: | 1.2.3 |
| Fix Version/s: | 1.2.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Emmanuel | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Sprint: | 2019-05, 2019-06 |
| Description |
|
See the following example below: CREATE TABLE `bug_cs` ( INSERT INTO `bug_cs` select c,sum(c) over(), sum(c) over w1, sum(c) over w2 from bug_cs select c,sum(c) over(), sum(c) over w1, sum(c) over w2 from |
| Comments |
| Comment by David Hall (Inactive) [ 2019-05-24 ] | ||||||||||||||||||||||||
|
This is a regression in 1.2 | ||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2019-05-29 ] | ||||||||||||||||||||||||
|
PR #117 for regression test | ||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2019-05-29 ] | ||||||||||||||||||||||||
|
There is a regression test added | ||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2019-06-20 ] | ||||||||||||||||||||||||
|
Build verified: 1.2.5-1 nighty [root@localhost ~]# cat gitversionInfo.txt Reproduced the issue in 1.2.3-1 and verified fix in 1.2.5-1 MariaDB [mytest]> select c,sum(c) over(), sum(c) over w1, sum(c) over w2 from bug_cs
-----
----- MariaDB [mytest]> select c,sum(c) over(), sum(c) over w1, sum(c) over w2 from
------
------ |