davidradl commented on code in PR #26385:
URL: https://github.com/apache/flink/pull/26385#discussion_r2144551215
##########
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:
nit: listTemporaryModelsInternal is a strange method name; can we just use
listTemporaryModels(), the private indicates it is internal
--
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]