[MCOL-4632] CAST(hugeNegativeWideDecimal AS SIGNED) returns 0 or NULL Created: 2021-03-23 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:
|
| Comments |
| Comment by Daniel Lee (Inactive) [ 2023-04-25 ] | ||||||||||||||||||||||||||||||||
|
This issue still exists after the fix for | ||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2023-08-14 ] | ||||||||||||||||||||||||||||||||
|
Build tested: develop branch, latest engine: c97c8b672e33e09e9cf66db39e6c013d398c97e3 Reproduced the reported issue in release 23.02.4. In this latest build, unsupported negative value is returned:
According to data types information in this page https://mariadb.com/docs/columnstore/sql/features/data-types/enterprise-columnstore/ The smallest negative number supported in ColumnStore is -9223372036854775806. The follow test validated this information:
This build returned -9223372036854775807, which is not supported |