[MCOL-4247] SUM() and AVG() in subquery return zero. Created: 2020-08-13 Updated: 2020-11-12 Resolved: 2020-08-20 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr |
| Affects Version/s: | 1.0.0 |
| Fix Version/s: | 5.4.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | susil.behera | Assignee: | susil.behera |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2020-8 |
| Description |
|
Build tested: 1.5.4-1 (Drone build #417) CREATE TABLE t2(c INT)ENGINE=Columnstore;
--------
-------- SELECT (SELECT SUM(c) FROM t2) FROM t2;
-------------------------
------------------------- SELECT (SELECT AVG(c) FROM t2) FROM t2;
-------------------------
------------------------- SHOW WARNINGS;
--------
-------- Expected result:
-------------------------
------------------------- SELECT (SELECT AVG(c) FROM t2) FROM t2;
-------------------------
------------------------- This is a regression as it used to return the correct result in Drone build #411 and before. |
| Comments |
| Comment by David Hall (Inactive) [ 2020-08-17 ] |
|
Since #411 and #417 are from the same Columnstore hash, I assumed it's caused by a change in the server. This has been confirmed. |
| Comment by David Hall (Inactive) [ 2020-08-17 ] |
|
Something in compiler settings or the new use of "override" and "final" in function declarations made it use a different virtual function during a callback. Our code probably could have been better, so fixing that. |
| Comment by susil.behera [ 2020-08-20 ] |
|
Verified on, |