xuyangzhong commented on code in PR #25948:
URL: https://github.com/apache/flink/pull/25948#discussion_r1910294600


##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/factories/TableFactoryUtil.java:
##########
@@ -70,28 +66,14 @@ public static <T> TableSource<T> 
findAndCreateTableSource(TableSourceFactory.Con
      */
     @SuppressWarnings("unchecked")
     public static <T> TableSource<T> findAndCreateTableSource(
-            @Nullable Catalog catalog,
             ObjectIdentifier objectIdentifier,
             CatalogTable catalogTable,
             ReadableConfig configuration,
             boolean isTemporary) {
         TableSourceFactory.Context context =
                 new TableSourceFactoryContextImpl(
                         objectIdentifier, catalogTable, configuration, 
isTemporary);
-        Optional<TableFactory> factoryOptional =
-                catalog == null ? Optional.empty() : catalog.getTableFactory();

Review Comment:
   This method `findAndCreateTableSource` is a deprecated API that needs to be 
deleted https://issues.apache.org/jira/browse/FLINK-33748. And in theory, all 
codes have been migrated to the new connector API `getTableFactory`.



-- 
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]

Reply via email to