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

*.:support check table stmt #718 #723

Merged
merged 2 commits into from
Jan 20, 2021

Conversation

hustjieke
Copy link
Contributor

[summary]
support check stmt:

CHECK {TABLE | TABLES} tbl_name [, tbl_name] ... [option] ...

option: {
    FOR UPGRADE
  | QUICK
  | FAST
  | MEDIUM
  | EXTENDED
  | CHANGED
}

[test case]
sqlparser/parse_test.go
src/planner/others_plan_test.go
src/proxy/table_maintenance_test.go

[patch codecov]
src/planner/others_plan.go 94.9%
src/proxy/table_maintenance.go 100%
src/proxy/query.go 94.8%
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 87.5%

[summary]
support check stmt:

```
CHECK {TABLE | TABLES} tbl_name [, tbl_name] ... [option] ...

option: {
    FOR UPGRADE
  | QUICK
  | FAST
  | MEDIUM
  | EXTENDED
  | CHANGED
}
```

[test case]
sqlparser/parse_test.go
src/planner/others_plan_test.go
src/proxy/table_maintenance_test.go

[patch codecov]
src/planner/others_plan.go  94.9%
src/proxy/table_maintenance.go 100%
src/proxy/query.go  94.8%
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go  87.5%
@hustjieke hustjieke force-pushed the feature_support_check_table_stmt branch from f337422 to e6bb0c3 Compare January 19, 2021 04:09
@codecov
Copy link

codecov bot commented Jan 19, 2021

Codecov Report

Merging #723 (eaf3d40) into master (7c4781a) will increase coverage by 0%.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #723   +/-   ##
=====================================
  Coverage      89%    89%           
=====================================
  Files         133    133           
  Lines        9370   9406   +36     
=====================================
+ Hits         8364   8400   +36     
  Misses        665    665           
  Partials      341    341           
Impacted Files Coverage Δ
src/planner/others_plan.go 92% <100%> (+1%) ⬆️
src/proxy/query.go 93% <100%> (+<1%) ⬆️
src/proxy/table_maintenance.go 100% <100%> (ø)
src/backend/xacheck.go 80% <0%> (-2%) ⬇️
src/backend/txn.go 86% <0%> (-1%) ⬇️
src/executor/engine/merge_join.go 96% <0%> (+1%) ⬆️
src/router/api.go 91% <0%> (+2%) ⬆️

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 7c4781a...eaf3d40. Read the comment docs.

[summary]
fix word "optimize" to "check"
fix word "note" to "status"

[test case]
N/A

[patch codecov]
N/A
@hustjieke hustjieke marked this pull request as ready for review January 20, 2021 02:05
@BohuTANG
Copy link
Contributor

LGTM

@BohuTANG BohuTANG merged commit 9c0186b into radondb:master Jan 20, 2021
@@ -252,3 +252,31 @@ var OptimizeOption2Str = map[OptimizeOptionEnum]string{
OptimizeOptionNoWriteToBinlog: "no_write_to_binlog",
OptimizeOptionLocal: "local",
}

// CheckOptionEnum is an enum for optimize statement.
Copy link
Contributor

Choose a reason for hiding this comment

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

optimize -> check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants