Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Impala 3.1.0
-
None
-
ghx-label-8
Description
The following query returns an incorrect result:
select width_bucket(cast(9 as decimal(10,7)), cast(-60000 as decimal(11,6)), cast(10 as decimal(7,5)), 249895273);
Result:
1
Since 9 is slightly less than the upper bound, which is 10, the result should be the number of buckets.
Attachments
Issue Links
- blocks
-
IMPALA-7202 Add WIDTH_BUCKET() function to the decimal fuzz test
- Resolved