-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
statistics: remove unnecessary copy in the baseCollector #51244
Conversation
Signed-off-by: Weizhen Wang <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #51244 +/- ##
=================================================
- Coverage 70.5917% 54.6915% -15.9002%
=================================================
Files 1467 1577 +110
Lines 435011 602504 +167493
=================================================
+ Hits 307082 329519 +22437
- Misses 108658 250037 +141379
- Partials 19271 22948 +3677
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This copy is added since we met some strange problems when we introduced it.
Approve since we passed simple tests this time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fill in your PR description. This then becomes a really valuable resource for the future to understand why certain changes have been made.
Also, please mention the worry that we talked about on the lark.
Thanks!
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hi-rustin, winoros The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
OK, I has updated all information. |
/unhold |
What problem does this PR solve?
Issue Number: close #51246
Problem Summary:
What changed and how does it work?
baseCollector.FromProto will copy the bytes in the
tipb.RowSampleCollector
. it is unnecessary. After FromProto, it will not be used again.BTW Someone said the protobuf have a problem to make statistics wrong if we remove this copy. so let us check it.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.