expression: unify casting real to string in tidb (tikv#16975) | tidb-test=pr/2324#53129
expression: unify casting real to string in tidb (tikv#16975) | tidb-test=pr/2324#53129ti-chi-bot[bot] merged 4 commits intopingcap:masterfrom
Conversation
|
Hi @solotzg. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #53129 +/- ##
================================================
+ Coverage 72.4150% 73.8800% +1.4649%
================================================
Files 1492 1492
Lines 429231 429258 +27
================================================
+ Hits 310828 317136 +6308
+ Misses 99123 92184 -6939
- Partials 19280 19938 +658
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
/retest |
|
@solotzg: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/test mysql-test |
|
@solotzg: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
|
@solotzg: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
|
@solotzg: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@gengliqi: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gengliqi, wshwsh12, XuHuaiyu The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test mysql-test |
|
@solotzg: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/cherrypick release-8.1 |
|
@solotzg: new pull request created to branch DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
…pingcap#53129)" This reverts commit f311d77.
What problem does this PR solve?
Issue Number: close #51109
Problem Summary:
strconv.strconvuseRyu algorithmto calculate significant digits.f32::to_string&f64::to_stringto implement casting real to str. It can NOT guarantee precision if the number of significant digits exceeds the upper limit (f32: 6, f64: 15).What changed and how does it work?
Unify the behavior of converting real types to strings in tidb and tikv(tikv/tikv#16975).
abs(num) >= 1e15 or abs(num) < 1e-15then use decimal exponent formatCheck List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.