You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "lexluo09 (via GitHub)" <gi...@apache.org> on 2023/02/21 05:17:41 UTC
[GitHub] [doris] lexluo09 opened a new issue, #16973: [Enhancement] Create function support the global operation
lexluo09 opened a new issue, #16973:
URL: https://github.com/apache/doris/issues/16973
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
### Description
Description:
When you create a custom function, it can only be used within in one database. It cannot be used in other database. When there are many databases, it needs to create function one by one.

### Solution
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、When a function is created or deleted, if it is global with the keyword, all databases under the current catalog are obtained and the corresponding create and drop operations are performed.
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] morningman closed issue #16973: [Enhancement] Function support the global operation
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #16973: [Enhancement] Function support the global operation
URL: https://github.com/apache/doris/issues/16973
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org