[MCOL-2091] UDAF doesn't work if there are two count(distinct) in projection list Created: 2019-01-18 Updated: 2019-04-19 Resolved: 2019-04-19 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr |
| Affects Version/s: | 1.2.2 |
| Fix Version/s: | 1.2.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Roman | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Sprint: | 2019-04 |
| Description |
|
The query
returns the error
. Here are the steps to reproduce:
|
| Comments |
| Comment by David Hall (Inactive) [ 2019-04-10 ] | ||||||||
|
Strange. I ran the query multiple times. One time it worked. | ||||||||
| Comment by Daniel Lee (Inactive) [ 2019-04-19 ] | ||||||||
|
Build verified: 1.2.4-1 nightly [dlee@master centos7]$ cat gitversionInfo.txt Default installation does have avg_mode() install. It needs to be installed manually. MariaDB [mytest]> CREATE AGGREGATE FUNCTION avg_mode returns REAL soname 'libudf_mysql.so'; Reproduced the issue in 1.2.2-1 MariaDB [mytest]> select c1,count(distinct c2) as c2,count(distinct c3) as c3, avg_mode(c4) as c4 from t1 group by c1; MariaDB [mytest]> select c1,count(distinct c2) as c2,count(distinct c3) as c3, avg_mode(c4) as c4 from t1 group by c1; Verified in 1.2.4-1 nightly MariaDB [mytest]> create table t1 (c1 int, c2 int, c3 int, c4 int)engine=columnstore; MariaDB [mytest]> insert into t1 values (1,2,3,4),(1,2,3,4),(1,2,3,4),(1,2,3,4); MariaDB [mytest]> select c1,count(distinct c2) as c2,count(distinct c3) as c3, avg_mode(c4) as c4 from t1 group by c1;
-----
----- |