-
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
parser: supports create/alter/drop resource group #39546
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. |
Signed-off-by: nolouch <nolouch@gmail.com>
f98f2f4
to
34c1ed2
Compare
Signed-off-by: nolouch <nolouch@gmail.com>
Conflicts: parser/parser.go
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.
What does OR REPLACE
Signed-off-by: nolouch <nolouch@gmail.com>
Conflicts: parser/parser.go
{ | ||
$$ = &ast.ResourceGroupOption{Tp: ast.ResourceWRURate, StrValue: $3} | ||
} | ||
| "CPU" EqOpt stringLit |
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.
So, we can say "create resource group x rru_per_sec='2000', cpu = '8'". That is specify rru_per_sec and cpu at the same time? The semantic is a little weird. I prefer to make 2 option groups, either rru&wru or cpu/iobandwidth.
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.
Here only parser part. we can limit the behavior in DDL handle logic. ru
and cpu/bandwith
cannot be specified at the same time, report the error to user.
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
/merge |
This pull request has been accepted and is ready to merge. Commit hash: b9c897f
|
TiDB MergeCI notify🔴 Bad News! New failing [1] after this pr merged.
|
Signed-off-by: nolouch nolouch@gmail.com
What problem does this PR solve?
Issue Number: Ref #38825
Problem Summary:
The Spec show details: https://docs.google.com/document/d/1P_D1R1qGMFjmjbGCxYjRodgp1Yeyx4dBvg2W1l_Eiy0/edit?n=1-page_Spec_template#
What is changed and how it works?
add parser part only.
Check List
Tests
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.