[MCOL-719] Unexpected results using LEAST or GREATEST on aggregate Created: 2017-05-16 Updated: 2017-05-31 Resolved: 2017-05-31 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.0.8 |
| Fix Version/s: | 1.0.10, 1.1.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Geoff Cleaves | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2017-10, 2017-11 |
| Description |
|
results in 0000-00-00 00:00:00 when it should be '1999-01-01'.
This did not happen on InfiniDB. |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2017-05-16 ] | ||
|
Cause appears to be ColumnStore's func_least / func_greatest have no date/datetime handling in them. I'll add the missing code. | ||
| Comment by Andrew Hutchings (Inactive) [ 2017-05-17 ] | ||
|
Added the required support. Pull requests for 1.0 and 1.1 | ||
| Comment by Daniel Lee (Inactive) [ 2017-05-31 ] | ||
|
Build verified: Github source 1.0.10 and 1.1.0 1.1.0 [root@localhost mariadb-columnstore-server]# git show [root@localhost mariadb-columnstore-engine]# git show 1.0.10 [root@localhost mariadb-columnstore-server]# git show [root@localhost mariadb-columnstore-engine]# git show MariaDB [mytest]> CREATE TABLE `test` ( MariaDB [mytest]> insert into test (action_date) values ('1999-01-01'); MariaDB [mytest]> insert into test (action_date) values ('2020-01-01'); MariaDB [mytest]> select least(min(action_date),cast('2000-01-01' as datetime)) from test;
--------------------------------------------------------
-------------------------------------------------------- |