-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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][Jdbc] Add Jdbc default dialect for all jdbc series database without dialect #8132
Conversation
d9b0911
to
3d5e7be
Compare
90dd7f7
to
eedb034
Compare
@Hisoka-X PTAL, The CI error should not be related to this modification |
eedb034
to
83a1b07
Compare
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.
Thanks @sunxiaojian !
user = "mariadb_user" | ||
password = "mariadb_password" | ||
|
||
query = "select * from source;" |
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.
I think the generic dialect should support table_path
and catalog table too.
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.
oh. It aleady supported by JdbcCatalogUtils
. Please create a test case with only table_path
.
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.
@Hisoka-X done, PTAL
83a1b07
to
fbe1054
Compare
private static final String MARIADB_SINK = "sink"; | ||
private static final String CATALOG_DATABASE = "catalog_database"; | ||
|
||
private static final List<String> CONFIG_FILE = |
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.
Please merge two test case into one class.
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.
Is this necessary?
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.
To save ci time and remove duplicated code.
@@ -31,6 +31,7 @@ public class BasicTypeDefine<T> implements Serializable { | |||
protected String columnType; | |||
// e.g. `varchar` for MySQL | |||
protected String dataType; | |||
protected int sqlType; |
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.
I think we can use nativeType instead of sqlType.
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.
I think we can use nativeType instead of sqlType.
no, like 'INT' cannot be converted to standard JDBCType, SQLType doesn't need to worry about this issue
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.
OK, please add some comment to tell devs the sqlType come from jdbc, not come from seatunnel sql type. cc @hailin0
fbe1054
to
65dab13
Compare
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 if ci passes. Thanks @sunxiaojian
Purpose of this pull request
closed : #7956
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide
release-note
.