Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
ghx-label-1
Description
The following query causes a crash:
select cast("1.234e-30" as decimal(10, 2))
We hit a DCHECK:
string-parser.h:221] Check failed: value >= 0
One a release build, the result is incorrect:
+------------------------------------+ | cast('1.234e-30' as decimal(10,2)) | +------------------------------------+ | -12.34 | +------------------------------------+