[MCOL-4619] TreeNode::getUintVal() does not round: Implicit DECIMAL->UINT conversion is not like in InnoDB Created: 2021-03-17 Updated: 2021-03-30 Resolved: 2021-03-30 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | PrimProc |
| Affects Version/s: | 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: |
|
||||||||||||||||||||||||
| Description |
|
Notice, 1.5 was truncated to 1. Looks wrong. The expected result is to round:
Notice, 1.5 was rounded to 2. |
| Comments |
| Comment by Alexander Barkov [ 2021-03-22 ] | ||||||
|
Note, explicit CAST works fine (rounds as expected):
|