Uh oh!
There was an error while loading. Please reload this page.
[fix](be) Use shortest round-trip floating-point strings - #65609
Conversation
hello-stephen
commented
Jul 14, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
jacktengg
commented
Jul 14, 2026
run buildall |
Possible file(s) that should be tracked in LFS detected: 🚨The following file(s) exceeds the file size limit:
Consider using |
Possible file(s) that should be tracked in LFS detected: 🚨The following file(s) exceeds the file size limit:
Consider using |
jacktengg
commented
Jul 14, 2026
run buildall |
### What problem does this PR solve? Issue Number: None Related PR: apache#65609 Problem Summary: The legacy analyzer FloatLiteral unit test still expected the previous precision-limited float and double formatting. Update all stale positive, negative, boundary, and scientific-notation expectations to the shortest round-trip format already used by FE and BE. ### Release note None ### Check List (For Author) - Test: Unit Test - ./run-fe-ut.sh --run org.apache.doris.analysis.FloatLiteralTest,org.apache.doris.analysis.ExprToStringValueVisitorTest,org.apache.doris.nereids.trees.expressions.literal.DoubleLiteralTest,org.apache.doris.nereids.trees.expressions.literal.FloatLiteralTest - Behavior changed: No - Does this need documentation: No
Possible file(s) that should be tracked in LFS detected: 🚨The following file(s) exceeds the file size limit:
Consider using |
jacktengg
commented
Jul 14, 2026
test |
jacktengg
commented
Jul 14, 2026
run buildall |
hello-stephen
commented
Jul 14, 2026
TPC-H: Total hot run time: 29594 ms |
hello-stephen
commented
Jul 14, 2026
TPC-DS: Total hot run time: 177975 ms |
hello-stephen
commented
Jul 14, 2026
ClickBench: Total hot run time: 24.82 s |
hello-stephen
commented
Jul 14, 2026
FE UT Coverage ReportIncrement line coverage |
hello-stephen
commented
Jul 14, 2026
FE Regression Coverage ReportIncrement line coverage |
yiguolei
commented
Jul 16, 2026
Do not modify it anymore |
Possible file(s) that should be tracked in LFS detected: 🚨The following file(s) exceeds the file size limit:
Consider using |
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.
01f656d to
4823985Comparejacktengg
commented
Jul 27, 2026
run buildall |
Possible file(s) that should be tracked in LFS detected: 🚨The following file(s) exceeds the file size limit:
Consider using |
hello-stephen
commented
Jul 27, 2026
FE UT Coverage ReportIncrement line coverage |
PR approved by at least one committer and no changes requested. |
Issue Number: None Related PR: apache#65609 Problem Summary: Gitleaks treats random-string fixtures in four generated regression result files as generic API keys whenever floating-point formatting changes rewrite their long lines. Limit the allowlist to those exact paths and the synthetic random-string shape so real credential patterns remain detectable. None - Test: Manual test - Replayed Gitleaks v8.30.0 on the triggering commit range: 11 findings before, 0 after - Confirmed a generic credential positive control is still detected - Behavior changed: No - Does this need documentation: No
Possible file(s) that should be tracked in LFS detected: 🚨The following file(s) exceeds the file size limit:
Consider using |
# Conflicts: # .gitleaks.toml
Possible file(s) that should be tracked in LFS detected: 🚨The following file(s) exceeds the file size limit:
Consider using |
hello-stephen
commented
Aug 3, 2026
skip buildall |
Uh oh!
There was an error while loading. Please reload this page.
Floating number to string is now handled correctly by CastToString::from_number in PR apache#65609, special handing in DataTypeNumberSerDe<T>::to_olap_string is not necessary now.
### What problem does this PR solve? Issue Number: close #xxx Related PR: #65302 Problem Summary: Floating number to string is now handled correctly by CastToString::from_number in PR #65609, special handing in DataTypeNumberSerDe<T>::to_olap_string is not necessary now. ### Release note None ### 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: apache/doris-website#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 -->
…6425) ### What problem does this PR solve? Pick #65609 and #66375 Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None ### 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: apache/doris-website#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>
### 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: apache/doris-website#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>
### What problem does this PR solve? Issue Number: close #xxx Related PR: apache#65302 Problem Summary: Floating number to string is now handled correctly by CastToString::from_number in PR apache#65609, special handing in DataTypeNumberSerDe<T>::to_olap_string is not necessary now. ### Release note None ### 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: apache/doris-website#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 -->
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
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)