imay commented on a change in pull request #1140: Add SHOW FUNCTION and update
docs for UDF
URL: https://github.com/apache/incubator-doris/pull/1140#discussion_r283095225
##########
File path:
docs/documentation/cn/sql-reference/sql-statements/create-function.md
##########
@@ -0,0 +1,70 @@
+# CREATE FUNCTION
+
+## Syntax
+
+```
+CREATE [AGGREGATE] FUNCTION function_name
+ (arg_type [, ...])
+ RETURNS ret_type
+ [INTERMEDIATE inter_type]
+ [PROPERTIES ("key" = "value" [, ...]) ]
+```
+
+## Description
+
+此语句创建一个自定义函数。执行此命令需要用户拥有 `ADMIN` 权限。
+
+如果 `function_name`
中包含了数据库名字,那么这个自定义函数会创建在对应的数据库中,否则这个函数将会创建在当前会话所在的数据库。新函数的名字与参数不能够与当前命名空间中已存在的函数相同,否则会创建失败。但是只有名字相同,参数不同是能够创建成果的。
Review comment:
OK
----------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]