Files
TengJianPingandlidongyang af44286621 [fix](be) Use shortest round-trip floating-point strings (#65609)
### 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>
2026-08-03 14:42:17 +08:00

22 lines
1.5 KiB
Plaintext

-- This file is automatically generated. You should know what you did if you want to edit this
-- !select --
1 [117341182548128045443221446, 170141183460469231731687303715884105727]
100 [9223372036854775808]
-- !select --
100 [1, 2, 3] [32767, 32768, 32769] [65534, 65535, 65536] ["a", "b", "c"] ["hello", "world"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.33, 0.67] [3.1415926, 0.878787878] [4.000000, 5.500000, 6.670000] [1, 0] ["happy life"]
200 [2] [32768] [65535] ["b"] ["hello"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.67] [3.1415926] [6.670000] [0] ["happy life"]
-- !select --
100 [1, 2, 3] [32767, 32768, 32769] [65534, 65535, 65536] ["a", "b", "c"] ["hello", "world"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.33, 0.67] [3.1415926, 0.878787878] [4.000000, 5.500000, 6.670000] [1, 0] ["happy life"]
200 [2] [32768] [65535] ["b"] ["hello"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.67] [3.1415926] [6.670000] [0] ["happy life"]
-- !select --
2 32768 65535 0.5000000149011612 2.010190239
2 32768 65535 0.6700000166893005 3.1415926
-- !select --
100 [1, 2, 3] [32767, 32768, 32769] [65534, 65535, 65536] ["a", "b", "c"] ["hello", "world"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.33, 0.67] [3.1415926, 0.878787878] [4.000000, 5.500000, 6.670000] [1, 0] ["happy life"]
200 [1, 2, 3] [32767, 32768, 32769] [65534, 65535, 65536] ["a", "b", "c"] ["hello", "world"] ["2022-07-13"] ["2022-07-13 12:30:00"] [0.33, 0.67] [3.1415926, 0.878787878] [4.000000, 5.500000, 6.670000] [1, 0, 1, 0] ["happy life"]