[MCOL-77] FROM_DAYS() function returned incorrect values Created: 2016-05-23 Updated: 2016-06-21 Resolved: 2016-06-21 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr |
| Affects Version/s: | None |
| Fix Version/s: | 1.0.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 1.0.2-1 |
| Description |
|
Build tested: InfiniDB> getcalpontsoft Name : infinidb-platform Relocations: (not relocatable) ColumnStore returns: select cidx, CDECIMAL4, FROM_DAYS(CDECIMAL4) from datatypetestm order by cidx cidx CDECIMAL4 FROM_DAYS(CDECIMAL4) MySQL and MariaDB returns: select cidx, CDECIMAL4, FROM_DAYS(CDECIMAL4) from datatypetestm order by cidx cidx CDECIMAL4 FROM_DAYS(CDECIMAL4) |
| Comments |
| Comment by David Hall (Inactive) [ 2016-06-20 ] |
|
This is not a bug. Columnstore has a minimum date of 1400-01-01 and a max of 9999-12-31, so the viable range of numbers to get a date using from_days() is 511340-3652424. All other values return 0. This is different behaviour than MariaDB, as it can handle dates smaller. I don't know the reason why InfiniDB changed to 1400-01-01, but it was a conscious decision and should not be reversed lightly. In order for this test to be useful, values within the legal range should be added to the table, or perhaps the following could be used: |
| Comment by David Hall (Inactive) [ 2016-06-20 ] |
|
Not a bug. Revise test. |
| Comment by Dipti Joshi (Inactive) [ 2016-06-20 ] |
|
dleeyh Please close with "Not a Bug" as reason cause |
| Comment by Daniel Lee (Inactive) [ 2016-06-21 ] |
|
This the expected result according to Mr. Hall's investigation result. |