-
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
ddl: support create and drop placement policy #27574
ddl: support create and drop placement policy #27574
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-all-tests |
return err | ||
} | ||
// Auto fill the policyID when it is inserted. | ||
policyInfo, err := buildPolicyInfo(stmt) |
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.
I think we should do some checks here.
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 work is remained as described above into next pull request. otherwise, this is a too huge pr
Signed-off-by: ailinkid <314806019@qq.com>
Signed-off-by: ailinkid <314806019@qq.com>
922f38d
to
2c213c0
Compare
Signed-off-by: ailinkid <314806019@qq.com>
Signed-off-by: ailinkid <314806019@qq.com>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 5a3764e
|
Signed-off-by: ailinkid 314806019@qq.com
What problem does this PR solve?
Issue Number: part of #26580
What is changed and how it works?
Proposal: placement policy
What's Changed:
Support create placement policy and drop placement policy basically.
What's Remained:
1: create policy and drop policy statement privilege check
2: create policy should have the constraint yaml format check
3: create policy should have the constraint compatibility check
4: drop policy should have the clean the policy dependency in it's usage.
5: drop policy should notify the pd about the db/table/partition's schedule change.
Check List
Tests
Release note