-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
tables: split partiton test #46252
tables: split partiton test #46252
Conversation
6beca6e
to
57acd13
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #46252 +/- ##
================================================
- Coverage 73.3963% 73.0733% -0.3230%
================================================
Files 1295 1322 +27
Lines 393622 403893 +10271
================================================
+ Hits 288904 295138 +6234
- Misses 86337 90272 +3935
- Partials 18381 18483 +102
Flags with carried forward coverage won't be shown. Click here to find out more.
|
// SwapReorgPartFields swaps the reorganizePartitions field of two partitioned tables. used in tests. | ||
func SwapReorgPartFields(src, dst table.Table) bool { |
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.
Moving from a *_test.go
file pattern to testutil.go
, would not that mean that this function now also gets exported in non-test context?
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.
It is possible for other developers to misuse the function. the best method is to move it into the partition_test
. but I found it needs to change more private functions into public.
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.
The most important thing is to make partitionedTable
public.
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
2326228
to
6e1a12f
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716, mjonss 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 |
What problem does this PR solve?
Issue Number: ref #44940
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.