[MCOL-4263] function FLOOR may have changed behavior for DATETIME Created: 2020-08-20 Updated: 2021-01-20 Resolved: 2021-01-07 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | PrimProc |
| Affects Version/s: | 1.0.0 |
| Fix Version/s: | 5.5.2, 5.6.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Hall (Inactive) | Assignee: | David Hall (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Epic Link: | ColumnStore Compatibility Improvements | ||||||||
| Description |
|
Ceiling has changed behavior when processing DATETIME, TIMESTAMP and TIME col types (Not DATE, for some reason). It's probable that FLOOR has changed in the same way. The change is from expecting a BIGINT return with format yyyymmddHHMMSS, to a fully formatted datetime string. |
| Comments |
| Comment by Daniel Lee (Inactive) [ 2021-01-04 ] | ||||||||||||||||||||||||||
|
Build tested: 5.6.1-1 (Drone build 1442) These is an issue with floor() on time data type. MariaDB [mytest]> show create table t1;
------
------ insert into t1 values ('2021-01-04 11:34:00', now(), '11:34:00'); MariaDB [mytest]> select floor(c1), floor(c2), floor(c3) from t1;
--------------------
-------------------- MariaDB [mytest]> select ceiling(c1), ceiling(c2), ceiling(c3) from t1;
--------------------
-------------------- floor() on c3 returned '00:00:00' It worked correctly on InnoDB table The same test returned MariaDB [mytest]> show create table t2;
------
------ insert into t2 values ('2021-01-04 11:34:00', now(), '11:34:00'); MariaDB [mytest]> select floor(c1), floor(c2), floor(c3) from t2;
--------------------
-------------------- | ||||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2021-01-07 ] | ||||||||||||||||||||||||||
|
The floor problems are addressed in |