-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
feature: add antlr for mysql sqlparser #2933
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2933 +/- ##
=============================================
+ Coverage 50.57% 51.01% +0.44%
- Complexity 3105 3184 +79
=============================================
Files 599 615 +16
Lines 19510 19912 +402
Branches 2406 2433 +27
=============================================
+ Hits 9868 10159 +291
- Misses 8650 8748 +98
- Partials 992 1005 +13
|
has code not committed. |
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLInsertRecognizer.java
Outdated
Show resolved
Hide resolved
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLInsertRecognizer.java
Show resolved
Hide resolved
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLInsertRecognizer.java
Outdated
Show resolved
Hide resolved
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLInsertRecognizer.java
Show resolved
Hide resolved
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLSelectRecognizer.java
Outdated
Show resolved
Hide resolved
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLSelectRecognizer.java
Outdated
Show resolved
Hide resolved
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLUpdateRecognizer.java
Outdated
Show resolved
Hide resolved
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLUpdateRecognizer.java
Outdated
Show resolved
Hide resolved
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLUpdateRecognizer.java
Outdated
Show resolved
Hide resolved
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLUpdateRecognizer.java
Outdated
Show resolved
Hide resolved
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLDeleteRecognizer.java
Outdated
Show resolved
Hide resolved
...sqlparser-antlr/src/main/java/io/seata/sqlparser/antlr/mysql/AntlrMySQLInsertRecognizer.java
Outdated
Show resolved
Hide resolved
…arsing spaces, add new SQL alias parsing methods, and optimize some codes.
…arsing spaces, add new SQL alias parsing methods, and optimize some codes.
…arsing spaces, add new SQL alias parsing methods, and optimize some codes.
Codecov Report
@@ Coverage Diff @@
## develop #2933 +/- ##
=============================================
+ Coverage 51.58% 51.96% +0.38%
- Complexity 3401 3479 +78
=============================================
Files 621 637 +16
Lines 20655 21053 +398
Branches 2579 2606 +27
=============================================
+ Hits 10655 10941 +286
- Misses 8933 9032 +99
- Partials 1067 1080 +13
|
pom.xml
Outdated
@@ -337,7 +340,8 @@ | |||
<phase>validate</phase> | |||
<configuration> | |||
<configLocation>${user.dir}/style/seata_checkstyle.xml</configLocation> | |||
<suppressionsLocation>${user.dir}/style/seata_suppressions.xml</suppressionsLocation> | |||
<suppressionsLocation>${user.dir}/style/seata_suppressions.xml |
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.
Please revert here.
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.
pom space indentation has been processed
pom.xml
Outdated
@@ -368,7 +372,8 @@ | |||
<artifactId>protobuf-maven-plugin</artifactId> | |||
<version>${protobuf-maven-plugin.version}</version> | |||
<configuration> | |||
<protoSourceRoot>${project.basedir}/src/main/resources/protobuf/io/seata/protocol/transcation/</protoSourceRoot> | |||
<protoSourceRoot>${project.basedir}/src/main/resources/protobuf/io/seata/protocol/transcation/ |
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.
Please reset here.
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.
pom space indentation has been processed
* @return the SQLOperateRecognizer | ||
*/ | ||
public static SQLOperateRecognizerHolder getSQLRecognizerHolder(String dbType) { | ||
if (RECOGNIZER_HOLDER_MAP.get(dbType) != null) { |
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.
EnhancedServiceLoader already handle singleton, you can check SQLOperateRecognizerHolderFactory in druild.
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.
already processed
This reverts commit 3c004e8
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
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
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews