[MCOL-4600] CAST(decimal AS SIGNED/UNSIGNED) returns a wrong result Created: 2021-03-11 Updated: 2021-03-30 Resolved: 2021-03-30 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | PrimProc |
| Affects Version/s: | 5.5.1, 5.6.1, 6.1.1 |
| Fix Version/s: | 6.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 2021-5 | ||||||||
| Description |
|
The above looks wrong. If I change to ENGINE=InnoDB, it correctly returns:
The problem happens due to the precision loss in this code in Func_cast_unsigned::getUintVal():
|