-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Improve][Connector-v2][Jdbc] Refactor AbstractJdbcCatalog #5096
Conversation
Please add unit test cases. |
Seems SeaTunnel does not depend on Mockito now, I want to introduce it to mock jdbc connection, is it OK ? And if so what version should I choose? |
Refer to |
So I should add IT cases in module connector-jdbc-e2e instead of UT cases in the modified module, am I right? |
Yes, you can add IT for this pr. |
@whhe Great commit! Now we just need to resolve the conflicts. |
ee16086
to
1c0971b
Compare
I rebased the code and seems it's coverd by the IT cases for now. @ic4y @EricJoy2048 @liugddx |
@XiaoJiang521 PTAL |
.../java/org/apache/seatunnel/connectors/seatunnel/jdbc/catalog/sqlserver/SqlServerCatalog.java
Outdated
Show resolved
Hide resolved
.../java/org/apache/seatunnel/connectors/seatunnel/jdbc/catalog/sqlserver/SqlServerCatalog.java
Outdated
Show resolved
Hide resolved
The failed case |
@XiaoJiang521 Comments addressed, what do you think for now. |
LGTM |
@ic4y @EricJoy2048 PTAL |
At present, no tests cover these modifications, and the UT tests are also not working. We should add a seatunnel-catalog-e2e module under the seatunnel-e2e module and use testcontainers to cover these tests. |
Finally got caught with this work again ... will try it later. |
a586988
to
159999c
Compare
1c3be7f
to
be653d4
Compare
I add As PG does not use the same base IT class, I want to modify it in another pr, what do you think? @ic4y |
e5957f6
to
66d95bb
Compare
Thanks to help from @EricJoy2048, CI jobs are totally green now. |
All catalog implementations related to PTAL @ic4y @liugddx @EricJoy2048 |
Waiting for #5403 to be merged |
@liugddx Could you please help to retry the failed ut case? Seems the |
All tests passed, PTAL @ic4y @liugddx @EricJoy2048 |
@XiaoJiang521 is familiar with this area, could you please review it? |
LGTM @ic4y |
* refactor jdbc connector AbstractJdbcCatalog * add testCatalog for pg
* refactor jdbc connector AbstractJdbcCatalog * add testCatalog for pg
* refactor jdbc connector AbstractJdbcCatalog * add testCatalog for pg
Purpose of this pull request
Extract the common logic of MySqlCatalog and SqlServerCatalog to AbstractJdbcCatalog.
Check list
New License Guide
release-note
.