leonard9893 opened a new pull request, #63135:
URL: https://github.com/apache/doris/pull/63135
## Problem
`CAST('1.4E+4' AS DECIMAL(38, 15))` returns 14.000... instead of
14000.000... in Doris 4.0.5 (regression from 2.1).
## Root Cause
`be/src/util/string_parser.cpp` — `string_to_decimal` function at line 191
uses a loop variable `i` that was contaminated by the exponent parsing loop,
instead of the preserved `end_digit_index`.
Introduced by commit c10826315c0.
## Fix
Replace `i` with `end_digit_index` on line 191.
Fixes #63085
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]