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

refactor: create sql parser spi and a druid type sql parser #1703

Merged
merged 2 commits into from
Jan 6, 2020

Conversation

ggndnn
Copy link
Contributor

@ggndnn ggndnn commented Sep 24, 2019

Ⅰ. Describe what this PR did

This PR extracted sql parser part from rm-datasource to create sql parser SPI (seata-sqlparser-core), all imports from druid in rm-datasource were removed except unit test code. Druid related code was moved to a new project seata-sqlparser-druid where a druid type sql parser was implemented.

Ⅱ. 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

@codecov-io
Copy link

codecov-io commented Sep 24, 2019

Codecov Report

Merging #1703 into develop will decrease coverage by <.01%.
The diff coverage is 62.06%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1703      +/-   ##
=============================================
- Coverage      54.38%   54.38%   -0.01%     
- Complexity      2459     2461       +2     
=============================================
  Files            445      445              
  Lines          14860    14858       -2     
  Branches        1765     1764       -1     
=============================================
- Hits            8082     8080       -2     
  Misses          6001     6001              
  Partials         777      777
Impacted Files Coverage Δ Complexity Δ
...rc/main/java/io/seata/common/util/StringUtils.java 24.39% <ø> (-1.81%) 16 <0> (ø)
...on/src/main/java/io/seata/common/util/NetUtil.java 54.16% <0%> (ø) 15 <0> (ø) ⬇️
...ain/java/io/seata/common/util/CollectionUtils.java 94.44% <100%> (ø) 32 <0> (ø) ⬇️
...main/java/io/seata/common/util/ReflectionUtil.java 90.19% <100%> (ø) 14 <0> (ø) ⬇️
.../java/io/seata/common/thread/RejectedPolicies.java 50% <50%> (ø) 2 <2> (+1) ⬆️
.../io/seata/common/loader/EnhancedServiceLoader.java 63.55% <84.61%> (ø) 25 <3> (+1) ⬆️

@ggndnn ggndnn force-pushed the refactor_sqlparser_spi branch 4 times, most recently from de996aa to cb27e2f Compare October 16, 2019 01:55
@ggndnn ggndnn force-pushed the refactor_sqlparser_spi branch 2 times, most recently from ccf5acc to d77fb59 Compare October 22, 2019 06:26
@lovepoem
Copy link
Member

@ggndnn please fix the conflict

@ggndnn
Copy link
Contributor Author

ggndnn commented Jan 2, 2020

@ggndnn please fix the conflict

Ok, I will fix it.

@ggndnn
Copy link
Contributor Author

ggndnn commented Jan 2, 2020

@lovepoem fixed.

@zjinlei zjinlei added this to the 1.1.0 milestone Jan 2, 2020
Copy link
Contributor

@zjinlei zjinlei left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jsbxyyx jsbxyyx left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@l81893521 l81893521 left a comment

Choose a reason for hiding this comment

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

LGTM

@zjinlei zjinlei merged commit 922aa84 into apache:develop Jan 6, 2020
@ggndnn ggndnn deleted the refactor_sqlparser_spi branch January 8, 2020 09:22
dangquocbang pushed a commit to dangquocbang/seata that referenced this pull request Jan 14, 2020
* 'develop' of https://github.com/seata/seata: (125 commits)
  optimize: tcc module code style (apache#2103)
  refactor: change the package path of MySQL recognizer (apache#2125)
  optimize: fix query typo (apache#2176)
  refactor: add sql parser type druid as constant (apache#2156)
  test: enhance test coverage of seata common (apache#2170)
  optimize: gracefully close resources (apache#2139)
  Feature: Saga provide a switch to skip branch report on branch success, in order to optimize performance. (apache#2151)
  chore:use serializer instead of codec (apache#2097)
  optimize: spring module code style (apache#2159)
  optimize: Add Dubbo compatibility (apache#2036)
  optimize : seata-rm-datasource module code style (apache#2062)
  bugfix: Saga report branch status incorrect when service retried succeed (apache#2145)
  optimize:optimize log specifications (apache#2146)
  bugfix: when branchRollback failed, it will trigger retry of multi-tc. (apache#2113)
  refactor: create sql parser spi and a druid type sql parser (apache#1703)
  refactor: simplify to make seata-common more readable (apache#2038)
  feature: support FastThreadLocalContextCore (apache#2106)
  optimize: some typos (apache#2120)
  optimize: increase the oracle table meta cache code coverage (apache#2078)
  optimize: some typos (apache#2115)
  ...

# Conflicts:
#	pom.xml
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.

None yet

7 participants