-
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
importinto: fix incorrect index kv group count when table have common handle #51615
Conversation
Hi @D3Hunter. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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. |
numOfIndexGenKV: 4, | ||
dataKVMemSizePerCon: 460175067, | ||
perIndexKVMemSizePerCon: 153391689, | ||
}, | ||
{ | ||
createSQL: "create table t (a int, b int, c int, primary key(a,b,c) nonclustered, key(b,c), unique(b), unique(c), key(a,b))", |
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.
Does it cover the ClusteredIndexDefModeIntOnly
? check with that option and a table with non-int PK
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.
// ClusteredIndexDefModeIntOnly indicates only single int primary key will default be clustered.
seems not related, composite clustered int pk is also CommonHandle
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.
OK I see that HasClusteredIndex
can both check t.PKIsHandle || t.IsCommonHandle
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #51615 +/- ##
================================================
+ Coverage 72.5226% 72.8893% +0.3667%
================================================
Files 1468 1468
Lines 363168 437227 +74059
================================================
+ Hits 263379 318692 +55313
- Misses 80443 98572 +18129
- Partials 19346 19963 +617
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
LGTM
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Benjamin2037, GMHDBJD, lance6716 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 #50752
Problem Summary:
What changed and how does it work?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.