[MCOL-299] CHARACTER_LENGTH(float/decimal) returns wrong length Created: 2016-09-14 Updated: 2016-10-05 Resolved: 2016-10-05 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | PrimProc |
| Affects Version/s: | None |
| Fix Version/s: | 1.0.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | David Hall (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS |
||
| Issue Links: |
|
||||||||
| Sprint: | 2016-19 | ||||||||
| Description |
|
The CHARACTER_LENGTH function returns too large an answer for FLOAT and too small ans answer for DOUBLE. This is because the columnstore function uses sprintf default behavior to determine the string to be sized, while the final display of MariaDB uses something different with a slightly different format. These two formats need to be reconciled. |
| Comments |
| Comment by David Hall (Inactive) [ 2016-09-22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Multi MCOL checkin | ||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2016-09-23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Moving to QA | ||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2016-10-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Build verified: 1.0.4-1 mcsadmin> getsoft Name : mariadb-columnstore-platform MariaDB [mytest]> select cfloat, character_length(cfloat), cdouble, character_length(cdouble) from datatypetestm;
------------
------------ |