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

sqlparser: add drop index "lock | algorithm option" #693 #697

Merged

Conversation

hustjieke
Copy link
Contributor

[summary]

  1. Add drop index "lock | algorithm option".
  2. Refactor lock_algorithm_option in create index.

[test case]
src/proxy/ddl_test.go
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go

[patch codecov]
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 96.2%
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast_funcs.go 95.4%
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/sql.go 69.6%

[summary]
1. Add drop index "lock | algorithm option".
2. Refactor lock_algorithm_option in create index.

[test case]
src/proxy/ddl_test.go
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go

[patch codecov]
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go       96.2%
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast_funcs.go 95.4%
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/sql.go       69.6%
@codecov
Copy link

codecov bot commented Oct 26, 2020

Codecov Report

Merging #697 (fc10792) into master (af586a4) will decrease coverage by 0%.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #697   +/-   ##
=====================================
- Coverage      89%    89%   -1%     
=====================================
  Files         130    130           
  Lines        9279   9279           
=====================================
- Hits         8269   8267    -2     
- Misses        669    670    +1     
- Partials      341    342    +1     
Impacted Files Coverage Δ
src/backend/txn.go 87% <0%> (-1%) ⬇️

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 af586a4...c4de3c0. Read the comment docs.

@hustjieke hustjieke marked this pull request as ready for review October 27, 2020 01:48
@hustjieke hustjieke requested a review from zhyass October 27, 2020 01:48
@zhyass
Copy link
Contributor

zhyass commented Oct 29, 2020

Is there something wrong with the original code? If it is just to be consistent with the implementation of mysql, and the original implementation result is no problem, I think there is no need to modify it.

@BohuTANG BohuTANG requested a review from zhyass November 5, 2020 12:33
@hustjieke hustjieke force-pushed the feature_complete_drop_index_option_#693 branch from e767925 to c4de3c0 Compare November 12, 2020 05:00
@zhyass
Copy link
Contributor

zhyass commented Nov 12, 2020

LGTM

@BohuTANG BohuTANG merged commit 4eb64ff into radondb:master Nov 12, 2020
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