[MCOL-911] exemgr crashes with a nested aggregate multiplication query Created: 2017-09-11 Updated: 2017-10-25 Resolved: 2017-10-25 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MDB Plugin |
| Affects Version/s: | 1.0.11 |
| Fix Version/s: | 1.0.12, 1.1.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | David Thompson (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Sprint: | 2017-18, 2017-19, 2017-20, 2017-21 |
| Description |
|
The following table and query will cause exemgr to crash and not return results (happens whether the table has no rows or any values)
Removing either the *100 in the subquery or where kpi1 is not null causes the query to work. |
| Comments |
| Comment by David Hall (Inactive) [ 2017-09-15 ] | ||||||||||||||
|
Not sure if we're supposed to merge into develop yet | ||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2017-09-20 ] | ||||||||||||||
|
Merged into 1.1 and 1.2 develop branches | ||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2017-10-24 ] | ||||||||||||||
|
Build verified: Github source for 1.1.1-1 /root/columnstore/mariadb-columnstore-server Merge pull request #72 from mariadb-corporation/ /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine removed duplicaue entries Verified test with and without data. MariaDB [mytest]> CREATE TABLE test.test ( MariaDB [mytest]> SELECT id, MariaDB [mytest]> insert into test.test values (1,1); MariaDB [mytest]> insert into test.test values (2,2); MariaDB [mytest]> insert into test.test values (null,null); MariaDB [mytest]> SELECT id, kpi1 FROM (SELECT id, ((SUM(integerfield))/ (SUM(integerfield)) )*100 kpi1 FROM test.test GROUP BY id) kpi WHERE kpi1 IS NOT NULL;
-----
----- MariaDB [mytest]> SELECT id, kpi1 FROM (SELECT id, ((SUM(integerfield))/ (SUM(integerfield)) )*100 kpi1 FROM test.test GROUP BY id) kpi
-----
----- | ||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2017-10-25 ] | ||||||||||||||
|
Build verified: Github source for 1.0.12-1 /root/columnstore/mariadb-columnstore-server Merge pull request #69 from mariadb-corporation/ /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #300 from mariadb-corporation/ Verified with same tests. | ||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2017-10-25 ] | ||||||||||||||
|
both 1.0.12 and 1.1.1 have been verified |