lexluo09 opened a new pull request, #17608:
URL: https://github.com/apache/doris/pull/17608

   # Proposed changes
   Issue Number: close #16973
   
   Support create/drop global function. 
        When you create a custom function, it can only be used within in one 
database. It cannot be used in other database/catalog. When there are many 
databases/catalog, it needs to create function one by one.
   
   ## Problem summary
   
   Describe your changes.
   1、 When a function is created or deleted, add the global keyword.
   
   CREATE [GLOBAL] [AGGREGATE] [ALIAS] FUNCTION function_name (arg_type [, 
...]) [RETURNS ret_type] [INTERMEDIATE inter_type] [WITH PARAMETER(param 
[,...]) AS origin_function] [PROPERTIES ("key" = "value" [, ...]) ]
   
   DROP [GLOBAL] FUNCTION function_name (arg_type [, ...])
   
   2、A completely global global function is set, and the global function 
metadata is stored in the image. The function lookup strategy is to look in the 
database first, and if it can't be found, it looks in the global function.
   
   
   ## Checklist(Required)
   
   * [ no] Does it affect the original behavior
   * [ yes] Has unit tests been added
   * [ no] Has document been added or modified
   * [ no] Does it need to update dependencies
   * [yes] Is this PR support rollback (If NO, please explain WHY)
   
   ## Further comments
   
   
   


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

Reply via email to