yanand0909 commented on code in PR #26385:
URL: https://github.com/apache/flink/pull/26385#discussion_r2148855328


##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/CatalogManager.java:
##########
@@ -1463,6 +1463,29 @@ public Set<String> listModels(String catalogName, String 
databaseName) {
         }
     }
 
+    /**
+     * Returns an array of names of temporary models registered in the 
namespace of the current
+     * catalog and database.
+     *
+     * @return names of registered temporary models
+     */
+    public Set<String> listTemporaryModels() {
+        return listTemporaryModelsInternal(getCurrentCatalog(), 
getCurrentDatabase())
+                .map(e -> e.getKey().getObjectName())
+                .collect(Collectors.toSet());
+    }
+
+    private Stream<Map.Entry<ObjectIdentifier, CatalogModel>> 
listTemporaryModelsInternal(

Review Comment:
   This is in keeping with naming for table functions



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to