[MCOL-3959] microsecond support for from_unixtime Created: 2020-04-21 Updated: 2020-11-12 Resolved: 2020-04-30 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | PrimProc |
| Affects Version/s: | 1.4.3 |
| Fix Version/s: | 1.4.4, 1.5.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | David Hall (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Epic Link: | ColumnStore Compatibility Improvements |
| Sprint: | 2020-7 |
| Description |
|
Currently, CS from_unixtime rounds to the nearest second. This is different behavior than MDB, which doesn't round. |
| Comments |
| Comment by David Hall (Inactive) [ 2020-04-23 ] | ||||||||
|
Handle decimal types different than float types in order to preserve precision. | ||||||||
| Comment by David Hall (Inactive) [ 2020-04-24 ] | ||||||||
|
CREATE TABLE `c1` ( `a` decimal(4,2) DEFAULT NULL) ENGINE=Columnstore; Before patch
-----
After patch
-----
| ||||||||
| Comment by Daniel Lee (Inactive) [ 2020-04-30 ] | ||||||||
|
Builds verified: 1.4.4-1, 1.5.0-1 source 1.4.4-1 /root/ColumnStore/buildColumnstoreFromGithubSource/server /root/ColumnStore/buildColumnstoreFromGithubSource/server/engine 1.5.0-1 /root/ColumnStore/buildColumnstoreFromGithubSource/server commit 6ad38ccc28d31a099d052e5de827543808843a3c Reproduced the issue in 1.4.3-4 and verified the fix in 1.4.4-1 and 1.5.0-1 |