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: add support [NO_WRITE_TO_BINLOG | LOCAL] syntax in the ANALYZE statement #49482
Conversation
Hi @ub-3. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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. |
Hi @ub-3. 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. |
/ok-to-test |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #49482 +/- ##
================================================
+ Coverage 70.9977% 71.5612% +0.5634%
================================================
Files 1368 1418 +50
Lines 399517 415243 +15726
================================================
+ Hits 283648 297153 +13505
- Misses 96068 99291 +3223
+ Partials 19801 18799 -1002
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/cc |
@ub-3: GitHub didn't allow me to request PR reviews from the following users: ub-3. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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. |
ptal @Defined2014 @mjonss @bb7133 |
[LGTM Timeline notifier]Timeline:
|
@lance6716: GitHub didn't allow me to assign the following users: easonn7. Note that only pingcap members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this: 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. |
/approve The parser correctly parses "ANALYZE [NO_WRITE_TO_BINLOG | LOCAL] TABLE," and it aligns with MySQL syntax. Meanwhile, the planner can generate an error message to inform the client that TiDB does not currently support this feature, preventing any misunderstanding. So LGTM |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Defined2014, easonn7, lance6716, tangenta 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: close #49235
Problem Summary: There is no support for the
[NO_WRITE_TO_BINLOG | LOCAL]
parameter in the ANALYZE statementWhat changed and how does it work?
Parsing of the
ANALYZE
statement with the[NO_WRITE_TO_BINLOG | LOCAL]
parameter is now supported.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.