bowenli86 commented on a change in pull request #8212: [FLINK-11519][table] Add 
function related catalog APIs
URL: https://github.com/apache/flink/pull/8212#discussion_r276851513
 
 

 ##########
 File path: 
flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/ReadableWritableCatalog.java
 ##########
 @@ -131,4 +133,44 @@ void createTable(ObjectPath tablePath, CatalogBaseTable 
table, boolean ignoreIfE
        void alterTable(ObjectPath tableName, CatalogBaseTable newTable, 
boolean ignoreIfNotExists)
                throws TableNotExistException, CatalogException;
 
+       // ------ functions ------
+
+       /**
+        * Creates a function.
+        *
+        * @param functionPath          Path of the function
+        * @param function                      The function to be created
+        * @param ignoreIfExists    Flag to specify behavior if a table/view 
with the given name already exists:
+        *                          if set to false, it throws a 
TableAlreadyExistException,
+        *                          if set to true, nothing happens.
+        * @throws FunctionAlreadyExistException if the function already exist
+        * @throws DatabaseNotExistException     if the function does not exist
+        */
 
 Review comment:
   the newly added ReadableWritableCatalog APIs are missing javadoc for 
CatalogException

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

Reply via email to