-
Notifications
You must be signed in to change notification settings - Fork 148
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
[297] Refactor config classes #480
Conversation
Great job! |
xtable-api/src/main/java/org/apache/xtable/conversion/ExternalTable.java
Show resolved
Hide resolved
xtable-api/src/main/java/org/apache/xtable/conversion/ExternalTable.java
Outdated
Show resolved
Hide resolved
xtable-api/src/main/java/org/apache/xtable/conversion/TableSyncConfig.java
Outdated
Show resolved
Hide resolved
xtable-api/src/main/java/org/apache/xtable/conversion/TableSyncConfig.java
Outdated
Show resolved
Hide resolved
? null | ||
: table.getNamespace().split("\\.")) | ||
.catalogConfig(icebergCatalogConfig) | ||
.formatName(tableFormat) |
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.
Set .additionalProperties(targetProperties)
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.
There is no targetProperties
currently, what should this contain?
.tableName(table.getTableName()) | ||
Properties sourceProperties = new Properties(); | ||
if (table.getPartitionSpec() != null) { | ||
sourceProperties.put( |
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.
nit: This property should be needed required if the sourceFormat is Hudi
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.
it's not required if the table is non-partitioned. I have another set of changes to remove the need for this config altogether that I can open source in the future
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 👍
Thanks for the PR
02bff5c
to
3159009
Compare
What is the purpose of the pull request
Aims to address #297
Brief change log
Map<String, String>
of client properties when initializing the source client (can be done for target client's as well if there is need) which may contain other parameters required by a specific client that are not common to multiple formats.PerTableConfig
into aSourceTable
,TargetTable
, andTableSyncConfig
to decouple the sync specifics from the table configurationsHudiSourceConfig
is now derived from the client propertiesMap<String, String>
Verify this pull request