JingsongLi commented on a change in pull request #41:
URL: https://github.com/apache/flink-table-store/pull/41#discussion_r826526318
##########
File path:
flink-table-store-connector/src/main/java/org/apache/flink/table/store/connector/TableStoreFactory.java
##########
@@ -184,9 +286,42 @@ private static Path tablePath(Map<String, String> options,
ObjectIdentifier iden
identifier.getObjectName()));
}
- private static boolean enableChangeTracking(Map<String, String> options) {
+ @VisibleForTesting
+ static boolean enableChangeTracking(Map<String, String> options) {
return Boolean.parseBoolean(
options.getOrDefault(
CHANGE_TRACKING.key(),
CHANGE_TRACKING.defaultValue().toString()));
}
+
+ private static DynamicTableFactory.Context createLogStoreContext(
+ DynamicTableFactory.Context context) {
+ return new FactoryUtil.DefaultDynamicTableContext(
+ context.getObjectIdentifier(),
+ context.getCatalogTable()
+
.copy(filterLogStoreOptions(context.getCatalogTable().getOptions())),
+ filterLogStoreOptions(context.getEnrichmentOptions()),
+ context.getConfiguration(),
+ context.getClassLoader(),
+ context.isTemporary());
+ }
+
+ private static LogStoreTableFactory createLogStoreTableFactory() {
Review comment:
Take a look to previous `createLogStoreTableFactory`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]