radondb / radon

RadonDB is an open source, cloud-native MySQL database for building global, scalable cloud services
https://radondb.io/
GNU General Public License v3.0
1.79k stars 218 forks source link

*.:support check table stmt #718 #723

Closed hustjieke closed 3 years ago

hustjieke commented 3 years ago

[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%

codecov[bot] commented 3 years ago

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%) :arrow_up:
src/proxy/query.go 93% <100%> (+<1%) :arrow_up:
src/proxy/table_maintenance.go 100% <100%> (ø)
src/backend/xacheck.go 80% <0%> (-2%) :arrow_down:
src/backend/txn.go 86% <0%> (-1%) :arrow_down:
src/executor/engine/merge_join.go 96% <0%> (+1%) :arrow_up:
src/router/api.go 91% <0%> (+2%) :arrow_up:

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.

BohuTANG commented 3 years ago

LGTM