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_r332331898
##########
File path:
flink-table/flink-sql-parser/src/test/java/org/apache/flink/sql/parser/FlinkSqlParserImplTest.java
##########
@@ -529,6 +529,30 @@ public void testDropIfExists() {
check(sql, "DROP TABLE IF EXISTS `CATALOG1`.`DB1`.`TBL1`");
}
+ @Test
+ public void testCreateFunction() {
+ String sql = "CREATE FUNCTION catalog1.db1.function1 AS
'org.apache.fink.function.function1'";
+ check(sql, "CREATE FUNCTION `CATALOG1`.`DB1`.`FUNCTION1` AS
'org.apache.fink.function.function1'");
+ }
+
+ @Test
+ public void testCreateFuntionIfNotExist() {
Review comment:
Good catch.
----------------------------------------------------------------
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