mirror of
https://github.com/apache/doris.git
synced 2026-11-04 17:50:10 +00:00
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Formatting float and double values with max_digits10 preserves
round-trip precision but emits redundant digits such as
1.1000000000000001. Use fmt Dragonbox shortest-round-trip formatting in
BE and bit-exact matching formatting in FE, and synchronize affected
tests and expected results.
### Release note
Float and double values now use shortest round-trip string formatting
consistently in FE and BE.
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---------
Co-authored-by: lidongyang <lidongyang@selectdb.com>