-
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][Catalog] Catalog add Case Conversion Definition #5328
[Feature][Catalog] Catalog add Case Conversion Definition #5328
Conversation
String randomSuffix = UUID.randomUUID().toString().replace("-", "").substring(0, 4); | ||
String columnNamesString = String.join(", ", primaryKey.getColumnNames()); | ||
// String columnNamesString = String.join(", ", primaryKey.getColumnNames()); |
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.
// String columnNamesString = String.join(", ", primaryKey.getColumnNames()); |
return build(tablePath, ""); | ||
} | ||
|
||
public String build(TablePath tablePath, String fieldIde) { |
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.
Put fieldIde
as PostgresCreateTableSqlBuilder
field, so you don't need it as parameter for much methods.
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
|
||
package org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.dialectenum; | ||
|
||
public enum FieldIdeEnum { |
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'm a litttle curious, where did you get the name: FieldIde
? Because it just LetterCase
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.
field identifier😂 I'm not sure if this is acceptable either.
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.
How about IdentifierCase
?
Is any possible we can create |
ok |
The four classes, namely MysqlCreateTableSqlBuilder, OracleCreateTableSqlBuilder, PostgresCreateTableSqlBuilder, and SqlServerCreateTableSqlBuilder, share some commonality only between OracleCreateTableSqlBuilder and PostgresCreateTableSqlBuilder. For the rest, aside from class attributes that can be extracted into an abstract class, there doesn't appear to be much commonality to extract since each database requires its own unique table creation SQL construction and they differ significantly. Would it still be necessary to create an abstract class called AbstractCreateTableSqlBuilder for this situation? |
I see, we can do it later after we have catalog module. |
Purpose of this pull request
Check list
New License Guide
release-note
.