[MCOL-350] can't select date value of 0000-00-00 Created: 2016-10-07 Updated: 2016-11-11 Resolved: 2016-11-11 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | DMLProc |
| Affects Version/s: | 1.0.3 |
| Fix Version/s: | 1.0.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Thompson (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | relnote | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Sprint: | 2016-20, 2016-21, 2016-22 | ||||||||||||||||||||||||
| Description |
|
found this while reviewing justin's testsuite result bugs and it looks like we missed a verification in
the last query should also return a result. In justin's test suite, it means that the data setup code doesn't correctly set the d column to null causing some of the failures. |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2016-10-07 ] | ||||||||
|
Damn, I must have missed an if (data == 0) then NULL thing somewhere in PrimProc... | ||||||||
| Comment by Andrew Hutchings (Inactive) [ 2016-10-19 ] | ||||||||
|
My notes for when I come to patch this later: This will fail as the storage level date format is padded with 3F for the unused 6 bits. It either needs to be processed in the same data conversion function or hard set to an empty Date struct. | ||||||||
| Comment by Andrew Hutchings (Inactive) [ 2016-10-19 ] | ||||||||
|
Fix ready for when code freeze is listed. | ||||||||
| Comment by Daniel Lee (Inactive) [ 2016-11-11 ] | ||||||||
|
Build verified: 1.0.5-1 mcsadmin> getsoft Name : mariadb-columnstore-platform MariaDB [tpch10c]> use mytest MariaDB [mytest]> insert into t2 values ('0000-00-00','0000-00-00'); MariaDB [mytest]> select * from t2 where dt='0000-00-00';
-----------
----------- MariaDB [mytest]>
-----------
----------- |