Skip to content
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

*: add admin cleanup table lock syntax support #323

Merged
merged 1 commit into from
Jun 19, 2019

Conversation

crazycs520
Copy link
Contributor

What problem does this PR solve?

Add cleanup table lock syntax:

ADMIN CLEANUP TABLE LOCK table_name1 [, table_name2...]

Please merge PR: #305 first.

What is changed and how it works?

Check List

Tests

  • Unit test

Code changes

@codecov
Copy link

codecov bot commented Jun 19, 2019

Codecov Report

Merging #323 into master will decrease coverage by 0.13%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #323      +/-   ##
==========================================
- Coverage   50.65%   50.51%   -0.14%     
==========================================
  Files          31       31              
  Lines        6890     6909      +19     
==========================================
  Hits         3490     3490              
- Misses       3041     3060      +19     
  Partials      359      359
Impacted Files Coverage Δ
parser.go 70.58% <ø> (ø) ⬆️
ast/ddl.go 42.15% <0%> (-0.62%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2cf607...690470b. Read the comment docs.

Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kennytm kennytm added the status/LGT1 LGT1 label Jun 19, 2019
Copy link
Contributor

@kennytm kennytm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

But I just realized there's a TableName: Identifier '.' '*' rule, meaning all of the following are valid:

admin cleanup table lock a.*;
-- equivalent to admin cleanup table lock a;

admin checksum table a.*;
-- equivalent to admin checksum table a;

admin check table a.*;
-- equivalent to admin check table a;

analyze table a.*;
-- equivalent to analyze table a;

Are these all expected? 👀

Edit: I filed #357 for this.

@kennytm kennytm added status/LGT2 LGT2 and removed status/LGT1 LGT1 labels Jun 19, 2019
@kennytm kennytm merged commit b3d8b23 into pingcap:master Jun 19, 2019
lzmhhh123 pushed a commit to lzmhhh123/parser that referenced this pull request Jan 17, 2020
lzmhhh123 added a commit that referenced this pull request Jan 17, 2020
* *: try to support lock/unlock tables function (#305)

* *: add admin cleanup table lock syntax (#323)

* *: support alter table set flash replica syntax (#564)

Co-authored-by: crazycs <crazycs520@gmail.com>
lzmhhh123 pushed a commit to lzmhhh123/parser that referenced this pull request Jan 17, 2020
crazycs520 added a commit to crazycs520/parser that referenced this pull request Apr 28, 2020
crazycs520 added a commit to crazycs520/parser that referenced this pull request Apr 28, 2020
tiancaiamao pushed a commit to tiancaiamao/parser that referenced this pull request Apr 27, 2021
lyonzhi pushed a commit to lyonzhi/parser that referenced this pull request Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants