[MCOL-4236] ceiling() gives wrong answer for datetime Created: 2020-08-05 Updated: 2020-12-24 Resolved: 2020-08-27 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr, MDB Plugin, PrimProc |
| Affects Version/s: | 1.5.3 |
| Fix Version/s: | 5.4.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Hall (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Sprint: | 2020-8 | ||||||||||||
| Description |
|
From working_tpch1/qa_fe_cnxFunctions/bug_3334_ceil.sql |
| Comments |
| Comment by Daniel Lee (Inactive) [ 2020-08-12 ] | ||||||||||||||||||||||||||||||||
|
InnoDB returns the following: MariaDB [mytest]> select 'ceil(dtm)', id as id, dtm, ceiling(dtm) from dtypes;
----------
Both output in the bug description are incorrect. | ||||||||||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2020-08-19 ] | ||||||||||||||||||||||||||||||||
|
Between MDB 10.4 and 10.5, the expected return type for ceil(datetime) has changed from BIGINT to DATETIME. This change also applies to TIME and TIMESTAMP, but not to DATE. I expect a change for DATE will appear in the near future. This change does necessitate new ref files be generated, as the expected output is different than in previous versions. | ||||||||||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2020-08-19 ] | ||||||||||||||||||||||||||||||||
|
There is a PR for the regression suite (#238) | ||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2020-08-27 ] | ||||||||||||||||||||||||||||||||
|
Build tested: 1.5.4-1 (drone #479) The fix is in 1.5.4-1, which is the current develop branch. The release number will be changed to 1.5.5 later. MariaDB [tpch1]> select 'ceil(dtm)', id as id, dtm, ceiling(dtm) from dtypes
----------
|