-
Notifications
You must be signed in to change notification settings - Fork 489
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 support for [TRUNCATE|DISCARD|IMPORT|OPTIMIZE|REPAIR] PARTITION #453
Conversation
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
Codecov Report
@@ Coverage Diff @@
## master #453 +/- ##
==========================================
+ Coverage 71.24% 71.29% +0.05%
==========================================
Files 32 32
Lines 7594 7587 -7
==========================================
- Hits 5410 5409 -1
+ Misses 1665 1662 -3
+ Partials 519 516 -3
Continue to review full report at Codecov.
|
PTAL @tangenta |
@huaouo There seems 2 |
I'm sorry to bother you at midnight, but on my machine, there seems no such a problem. So wired. ➜ Workspace git clone https://github.com/huaouo/parser
Cloning into 'parser'...
remote: Enumerating objects: 29, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 2162 (delta 18), reused 23 (delta 13), pack-reused 2133
Receiving objects: 100% (2162/2162), 13.57 MiB | 279.00 KiB/s, done.
Resolving deltas: 100% (1603/1603), done.
➜ Workspace cd parser
➜ parser git:(master) make test
gofmt (simplify)
sh test.sh
ok github.com/pingcap/parser 2.361s coverage: 66.6% of statements in ./...
ok github.com/pingcap/parser/ast 1.422s coverage: 44.8% of statements in ./...
ok github.com/pingcap/parser/auth 1.040s coverage: 1.4% of statements in ./... [no tests to run]
ok github.com/pingcap/parser/charset 1.042s coverage: 2.0% of statements in ./...
ok github.com/pingcap/parser/format 1.042s coverage: 2.6% of statements in ./...
? github.com/pingcap/parser/goyacc [no test files]
ok github.com/pingcap/parser/model 1.046s coverage: 3.6% of statements in ./...
ok github.com/pingcap/parser/mysql 1.043s coverage: 1.8% of statements in ./...
ok github.com/pingcap/parser/opcode 1.040s coverage: 1.5% of statements in ./...
ok github.com/pingcap/parser/terror 1.040s coverage: 2.4% of statements in ./...
ok github.com/pingcap/parser/types 1.048s coverage: 7.3% of statements in ./...
➜ parser git:(master) git log -1 | head
commit ef08923e4d8e62fb1efba66716397bfe99fd8910
Author: Zhenhua Yang <huaouo@qq.com>
Date: Tue Aug 13 23:18:18 2019 +0800
add NO_WRITE_TO_BINLOG option for ALTER TABLE OPTIMIZE PARTITION & REPAIR PARTITION |
Try to delete |
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
@huaouo Please resolve conflicts :) |
Co-Authored-By: leoppro <i@leop.pro>
LGTM |
@kennytm PTAL |
It seems there isn't an issue in the list about |
we needn't fix it |
But according to MySQL's parser file, it also requires an |
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
Oh, I had a wrong understanding of your comment. We need to fix it. |
What problem does this PR solve?
Fixes #432 #434 #436 #437 #439
Add TRUNCATE PARTITION ALL clause.
What is changed and how it works?
ast/ddl.go
, add some newAlterTableSpec
types and modifyRestore
parser.y
.Check List
Tests