ddl,tables: only write the index when it meets partial index condition#62762
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #62762 +/- ##
================================================
+ Coverage 72.7181% 74.9055% +2.1874%
================================================
Files 1864 1888 +24
Lines 505545 514158 +8613
================================================
+ Hits 367623 385133 +17510
+ Misses 115594 105286 -10308
- Partials 22328 23739 +1411
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
ac0a733 to
6009afe
Compare
6009afe to
9785325
Compare
|
/retest |
9f57ee7 to
db0e6ef
Compare
4f0082c to
7807dc6
Compare
|
/retest |
1 similar comment
|
/retest |
|
I have no idea why mysql-test failed for now. It seems that the newest master commit also failed. |
|
/retest |
| for i, index := range indexes { | ||
| // If the `IndexRecordChunk.conditionPushed` is true and we have only 1 index, the `indexConditionCheckers` | ||
| // will not be initialized. | ||
| if index.Meta().HasCondition() && indexConditionCheckers != nil { |
There was a problem hiding this comment.
Check indexConditionCheckers != nil is enough.
There was a problem hiding this comment.
It's not enough.
indexConditionCheckers is initialized with make([]func(row chunk.Row) (bool, error), len(w.indexes)). We should either check index.Meta().HasCondition() or indexConditionCheckers[i] != nil (they are the same meaning).
|
/hold Waiting for @fzzf678 to review. |
[LGTM Timeline notifier]Timeline:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fzzf678, Leavrth, winoros, wjhuang2016 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 |
|
/unhold |
|
/retest |
3 similar comments
|
/retest |
|
/retest |
|
/retest |
|
@YangKeao: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
|
In response to a cherrypick label: new pull request created to branch |
This is the second PR for partial index
#63448
#62759
-> #62762
What problem does this PR solve?
Issue Number: close #62761
Problem Summary:
What changed and how does it work?
tables.indexto parse/store the expression ofpartialConditionExpression.MeetPartialConditionto check whether it'll meet the condition.admin show ddl jobfrom the added count to the scanned count.admin check tablefor partial index.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.