morrySnow commented on code in PR #2034: URL: https://github.com/apache/doris-website/pull/2034#discussion_r1952246095
########## docs/sql-manual/sql-statements/function/CREATE-FUNCTION.md: ########## @@ -26,102 +26,131 @@ under the License. ## Description -This statement creates a custom function. Executing this command requires the user to have `ADMIN` privileges. +This statement is used to create a custom function. -If `function_name` contains the database name, then the custom function will be created in the corresponding database, otherwise the function will be created in the database where the current session is located. The name and parameters of the new function cannot be the same as the existing functions in the current namespace, otherwise the creation will fail. But only with the same name and different parameters can be created successfully. +## Syntax -grammar: ```sql -CREATE [GLOBAL] [AGGREGATE] [ALIAS] FUNCTION function_name +CREATE [ GLOBAL ] + [{AGGREGATE | TABLES | ALIAS }] FUNCTION <function_name> (arg_type [, ...]) Review Comment: ```suggestion (<arg_type> [, ...]) ``` -- 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. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org