jnh5y commented on code in PR #25211:
URL: https://github.com/apache/flink/pull/25211#discussion_r1761393374
##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/GenericInMemoryCatalog.java:
##########
@@ -476,11 +578,12 @@ public CatalogFunction getFunction(ObjectPath path)
throws FunctionNotExistExcep
@Override
public boolean functionExists(ObjectPath path) {
checkNotNull(path);
-
- ObjectPath functionPath = normalize(path);
-
- return databaseExists(functionPath.getDatabaseName())
- && functions.containsKey(functionPath);
+ try {
+ getFunction(path);
+ return true;
+ } catch (Exception e) {
+ return false;
+ }
Review Comment:
This also appears to be separate refactoring.
--
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]