ddl,tables: only write the index when it meets partial index condition (#65700)#68946
ddl,tables: only write the index when it meets partial index condition (#65700)#68946YangKeao wants to merge 8 commits into
Conversation
close pingcap#62758 (cherry picked from commit e90bfe7)
pingcap#62762) close pingcap#62761 (cherry picked from commit d5754e9)
close pingcap#64602 (cherry picked from commit 87b89e4)
…ngcap#64476) close pingcap#64472 (cherry picked from commit 1c11d59)
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu> (cherry picked from commit 68bca95)
(cherry picked from commit a7a283a)
(cherry picked from commit b6079e8)
|
This cherry pick PR is for a release branch and has not yet been approved by triage owners. To merge this cherry pick:
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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
📝 WalkthroughWalkthroughThis PR implements comprehensive support for partial indexes in TiDB—indexes that only contain rows matching a WHERE condition. The implementation spans metadata schema updates, condition evaluation, DML/DDL integration, backfilling pipelines, admin operations, and extensive test coverage across unit and integration test suites. ChangesPartial Index Support
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120 minutes This is a large, multi-system feature touching core DDL, DML, backfilling, and admin operations with dense logic throughout the index subsystem, complemented by extensive test coverage that must be validated for correctness. Suggested labels
Suggested reviewers
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
|
|
This cherry pick PR is for a release branch and has not yet been approved by triage owners. To merge this cherry pick:
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 Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-8.5 #68946 +/- ##
================================================
Coverage ? 35.4076%
================================================
Files ? 1731
Lines ? 641136
Branches ? 0
================================================
Hits ? 227011
Misses ? 392399
Partials ? 21726
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This PR is a cherry-pick of #65700
This is a cherry-pick for partial index and some related bug fixes:
What problem does this PR solve?
Issue Number: close #62761, close #62758
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.