[MCOL-4648] CAST(UBIGINTNULL_inWideDecimal AS UNSIGNED) returns 0 or NULL Created: 2021-03-30 Updated: 2023-09-22 Resolved: 2023-08-15 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | PrimProc |
| Affects Version/s: | 5.6.1, 6.1.1 |
| Fix Version/s: | 23.10.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Roman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | beginner-friendly | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Sprint: | 2023-8 | ||||||||||||||||||||||||
| Assigned for Review: | |
||||||||||||||||||||||||
| Assigned for Testing: | |
||||||||||||||||||||||||
| Description |
|
The expected result is:
Note, in ColumnStore the value 18446744073709551614 is reserved for the magic value UBIGINTNULL. So perhaps in ColumnStore we'll have to return 18446744073709551613. But NULL and 0 are certainly wrong. |
| Comments |
| Comment by Daniel Lee (Inactive) [ 2023-04-25 ] | ||||||
|
This issue still exist after the fix for | ||||||
| Comment by Daniel Lee (Inactive) [ 2023-08-15 ] | ||||||
|
Build verified: develop branch, latest MariaDB [mytest]> SELECT d1, CAST(d1 AS UNSIGNED), CAST(d2 AS UNSIGNED) FROM t1;
---------------------
--------------------- According to data types information in this page https://mariadb.com/docs/columnstore/sql/features/data-types/enterprise-columnstore/ The max unsigned value is 18446744073709551613. |