leonard9893 commented on PR #63135:
URL: https://github.com/apache/doris/pull/63135#issuecomment-4420391096
Hi @apache/doris-committers, this PR fixes a regression in DECIMAL parsing
of scientific notation introduced by #60004.
`CAST('1.4E+4' AS DECIMAL(38,15))` currently returns `14.000...` instead of
`14000.000...` because the loop variable `i` was contaminated by the exponent
parsing loop.
The fix is a one-line change replacing reused `i` with the preserved
`end_digit_index` in `be/src/util/string_parser.cpp`. Could someone please take
a look? Thanks!
--
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]