xuefuz commented on a change in pull request #9937: [FLINK-14416][table] Add
Module interface and ModuleManager
URL: https://github.com/apache/flink/pull/9937#discussion_r336707182
##########
File path:
flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/api/java/internal/StreamTableEnvironmentImpl.java
##########
@@ -104,7 +106,9 @@ public static StreamTableEnvironment create(
settings.getBuiltInCatalogName(),
new
GenericInMemoryCatalog(settings.getBuiltInCatalogName(),
settings.getBuiltInDatabaseName()));
- FunctionCatalog functionCatalog = new
FunctionCatalog(catalogManager);
+ ModuleManager moduleManager = new ModuleManager();
+
+ FunctionCatalog functionCatalog = new
FunctionCatalog(catalogManager, moduleManager);
Review comment:
I saw repeated pattern like this. It's probably better to have a constructor
that doesn't take a module manager and instead creates it inside the
constructor.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services