[MCOL-79] NULLIF() function returns incorrect values Created: 2016-05-23 Updated: 2016-05-31 Resolved: 2016-05-31 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr |
| Affects Version/s: | None |
| Fix Version/s: | 1.0.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Build tested: getcalpontsoftwareinfo Mon May 23 16:47:57 2016 Name : infinidb-platform Relocations: (not relocatable) The function return the first parameter value, instead of NULL, when the parameters are date and datetime data types. For the datetime parameter, the date portion is the same as the date, and the time portion is all 0s. ColumnStore returns: MariaDB [mytest]> select cidx, CDATE, CDATETIME, NULLIF(CDATE,CDATETIME) from datatypetestm order by cidx;
-----
----- MySQL and MariaDB return: MariaDB [tpch1]> select cidx, CDATE, CDATETIME, NULLIF(CDATE,CDATETIME) from DataTypeTestm order by cidx;
-----
----- Row 1 return incorrect value. |
| Comments |
| Comment by David Hall (Inactive) [ 2016-05-24 ] | ||||||||||||||||||||||||||||||||||||||||||||||||
|
For QA Fix was in as | ||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dipti Joshi (Inactive) [ 2016-05-31 ] | ||||||||||||||||||||||||||||||||||||||||||||||||
|
dleeyh Please verify this and close if fixed. | ||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2016-05-31 ] | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Build verified: Name : mariadb-columnstore-platform Relocations: (not relocatable) MariaDB [mytest]> select cidx, CDATE, CDATETIME, NULLIF(CDATE,CDATETIME) from DataTypeTestm order by cidx;
-----
----- |