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

feature: support polardb-x 2.0 #5892

Merged
merged 7 commits into from
Oct 7, 2023

Conversation

hsien999
Copy link
Contributor

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

Extending AT mode support for PolarDB-X 2.0.
Note: Transparent PolarDB-X support is currently available only in the form of MySQL inheritance, and DRDS partitioning may need to be supported in the future.

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

codecov bot commented Sep 28, 2023

Codecov Report

Merging #5892 (1aad053) into develop (a797555) will increase coverage by 0.06%.
The diff coverage is 56.97%.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #5892      +/-   ##
=============================================
+ Coverage      48.75%   48.81%   +0.06%     
- Complexity      4128     4166      +38     
=============================================
  Files            775      793      +18     
  Lines          27924    28003      +79     
  Branches        3414     3417       +3     
=============================================
+ Hits           13613    13671      +58     
- Misses         12885    12907      +22     
+ Partials        1426     1425       -1     
Files Coverage Δ
...n/src/main/java/io/seata/common/util/PageUtil.java 50.00% <ø> (ø)
...tasource/exec/polardbx/PolarDBXInsertExecutor.java 100.00% <100.00%> (ø)
...ardbx/PolarDBXInsertOnDuplicateUpdateExecutor.java 100.00% <100.00%> (ø)
...ce/sql/handler/polardbx/PolarDBXEscapeHandler.java 100.00% <100.00%> (ø)
...urce/undo/polardbx/PolarDBXUndoDeleteExecutor.java 100.00% <100.00%> (ø)
...tasource/undo/polardbx/PolarDBXUndoLogManager.java 100.00% <100.00%> (ø)
...urce/undo/polardbx/PolarDBXUndoUpdateExecutor.java 100.00% <100.00%> (ø)
...sqlparser/druid/DruidSQLRecognizerFactoryImpl.java 69.23% <100.00%> (ø)
...arser/druid/polardbx/PolarDBXDeleteRecognizer.java 100.00% <100.00%> (ø)
...arser/druid/polardbx/PolarDBXInsertRecognizer.java 100.00% <100.00%> (ø)
... and 13 more

... and 8 files with indirect coverage changes

*
* @param connection db connection
*/
private void testMySQLAdaptiveType(Connection connection) {
Copy link
Member

Choose a reason for hiding this comment

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

Method names need to be more standardized, generally only UT will use the test name.

* @param dbType origin db type
* @return adaptive db type
*/
private static String getAdaptiveDbType(String dbType) {
Copy link
Member

Choose a reason for hiding this comment

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

expect a common class to determine if it's a MySQL family of databases.

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

None yet

3 participants