Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.14.0
-
None
Description
The server returns scale value of -1 for this query
select cast('999999999999999999' as decimal(18,0)) + cast('9999999999999999999999999999999999999' as decimal(38,0)) from (values(1))
The getValueAt() function did not take into account of the possibility of -1 scale and will go into infinite loop of appending 0 to the string buffer.
This can be reproduced query submitter.
Attachments
Issue Links
- is a child of
-
DRILL-6710 Disallow negative scale for VarDecimal
- Resolved