-
Notifications
You must be signed in to change notification settings - Fork 392
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
feat(spark-connector):support JDBC catalog #6212
base: main
Are you sure you want to change the base?
Conversation
Thanks for your PR, could you add corresponding IT? You could refer to |
add integeration test
8b20d04
to
72e0ead
Compare
The code looks clean; looking forward to have it. |
...k-common/src/main/java/org/apache/gravitino/spark/connector/jdbc/SparkJdbcTypeConverter.java
Show resolved
Hide resolved
...ommon/src/test/java/org/apache/gravitino/spark/connector/integration/test/SparkCommonIT.java
Outdated
Show resolved
Hide resolved
...test/java/org/apache/gravitino/spark/connector/integration/test/jdbc/SparkJdbcCatalogIT.java
Outdated
Show resolved
Hide resolved
...va/org/apache/gravitino/spark/connector/integration/test/jdbc/SparkJdbcTableInfoChecker.java
Show resolved
Hide resolved
5ffe3bb
to
d07200c
Compare
d07200c
to
83baa66
Compare
...ark-common/src/main/java/org/apache/gravitino/spark/connector/jdbc/GravitinoJdbcCatalog.java
Show resolved
Hide resolved
...-common/src/main/java/org/apache/gravitino/spark/connector/jdbc/JdbcPropertiesConverter.java
Outdated
Show resolved
Hide resolved
LGTM, except minor comments |
@@ -151,6 +158,14 @@ private void initHiveEnv() { | |||
HiveContainer.HDFS_DEFAULTFS_PORT); | |||
} | |||
|
|||
private void initMysqlEnv() throws SQLException { |
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.
could you move this logic in SparkJdbcMysqlCatalogIT? such as create an initCatalogEnv
method in SparkEnvIT, and overwrite it in SparkJdbcMysqlCatalogIT
What changes were proposed in this pull request?
Support JDBC catalog in Spark Connector
Why are the changes needed?
Fix: #1572 #6164
Does this PR introduce any user-facing change?
no
How was this patch tested?
TestJdbcPropertiesConverter
SparkJdbcCatalogIT