-
Notifications
You must be signed in to change notification settings - Fork 133
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
[FLINK-32714] Add dialect for OceanBase database #72
Conversation
Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html) |
5b24a8f
to
ede507d
Compare
f95b4a0
to
29a2307
Compare
5c39fb2
to
d531bb0
Compare
I enabled the it cases for Mysql mode of OceanBase, and the ci generally passed. PTAL @leonardBang @MartijnVisser |
d531bb0
to
4588188
Compare
@eskabetxe Do you want to take a look? |
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.
Hi @whhe,
Thanks for your contribution, I left some comments.
.../java/org/apache/flink/connector/jdbc/databases/oceanbase/dialect/OceanBaseRowConverter.java
Outdated
Show resolved
Hide resolved
...connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/dialect/JdbcDialectFactory.java
Outdated
Show resolved
Hide resolved
...ain/java/org/apache/flink/connector/jdbc/internal/options/InternalJdbcConnectionOptions.java
Outdated
Show resolved
Hide resolved
...connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/table/JdbcConnectorOptions.java
Outdated
Show resolved
Hide resolved
...g/apache/flink/connector/jdbc/databases/oceanbase/dialect/OceanBaseMysqlDialectTypeTest.java
Show resolved
Hide resolved
...che/flink/connector/jdbc/databases/oceanbase/table/OceanBaseMySqlDynamicTableSinkITCase.java
Show resolved
Hide resolved
...e/flink/connector/jdbc/databases/oceanbase/table/OceanBaseMySqlDynamicTableSourceITCase.java
Show resolved
Hide resolved
a0ecdbc
to
cb7d1cf
Compare
f86c45b
to
b26d144
Compare
Hello @MartijnVisser @davidradl Is it OK to keep the driver with 'provide' or 'test' scope here? If not, I may have to remove it and disable other IT cases in order to make the CI to pass. |
dcb5f3d
to
f8281c6
Compare
My thinking is that the CI tests should always pass. It think it is ok to leave test code in the codebase that can be used for local tests - ideally with instructions, but they should not case the CI to fail. |
Yes. If we have an enforcer rule that checks if we're not bundling this driver, I think we're safe. |
9467c6e
to
9fccfb1
Compare
73d782c
to
0f897d1
Compare
@eskabetxe PTAL |
Hi @MartijnVisser @eskabetxe can we continue the review when you have time? |
Anyone available please take a look on this. |
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
Awesome work, congrats on your first merged pull request! |
Currently the jdbc url is used to determine the dialect, but OceanBase has two sql compatible modes as 'mysql' and 'oracle', so additional information is needed to determine the sql dialect. In this PR I add a parameter 'compatible-mode', which may break some APIs in the process of creating jdbc dialect.