bowenli86 commented on a change in pull request #10388: [FLINK-14912][Table] 
create, drop catalog functions through catalog manager
URL: https://github.com/apache/flink/pull/10388#discussion_r353457046
 
 

 ##########
 File path: 
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java
 ##########
 @@ -622,6 +636,50 @@ private void registerTableSinkInternal(String name, 
TableSink<?> tableSink) {
                        .map(CatalogManager.TableLookupResult::getTable);
        }
 
+       private void createCatalogFunction(CreateFunctionOperation 
createFunctionOperation) {
+               Optional<Catalog> catalogOptional = 
CatalogFunctionUtils.lookupCatalog(
+                       catalogManager, 
createFunctionOperation.getFunctionIdentifier(), 
!createFunctionOperation.isIgnoreIfExists());
+               if (catalogOptional.isPresent()) {
 
 Review comment:
   `ignoreifnotexist` is for function, not catalog/db, right?

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

Reply via email to