HuangZhenQiu commented on a change in pull request #9689: [FLINK-7151] add a basic function ddl URL: https://github.com/apache/flink/pull/9689#discussion_r332334052
########## File path: flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/CatalogManager.java ########## @@ -316,6 +316,35 @@ public void dropTable(ObjectIdentifier objectIdentifier, boolean ignoreIfNotExis "DropTable"); } + /** + * Create a function in a given fully qualified path. + * + * @param catalogFunction The function to put in the given path + * @param objectIdentifier + * @param ignoreIfExists + */ + public void createFunction(CatalogFunction catalogFunction, ObjectIdentifier objectIdentifier, boolean ignoreIfExists) { + execute( + (catalog, path) -> catalog.createFunction(path, catalogFunction, ignoreIfExists), + objectIdentifier, + ignoreIfExists, + "CreateFunction"); + } + + /** + * Drops a function in a given fully qualified path. + * + * @param objectIdentifier + * @param ignoreIfExists Review comment: Done. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services