linrrzqqq commented on code in PR #62950:
URL: https://github.com/apache/doris/pull/62950#discussion_r3182723658


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/FunctionRegistry.java:
##########
@@ -322,6 +322,15 @@ public void dropUdf(String dbName, String name, 
List<DataType> argTypes) {
         }
     }
 
+    public void dropUdfByDb(String dbName) {
+        if (dbName == null) {

Review Comment:
   原有的 dropFunction 和 addFunction 里面也有这个判断
   
   而且目前大部分都是直接用 null 映射到 GlobalFunction 去的
   In GlobalFunctionMgr.java : 
   ```java
       public synchronized void dropFunction(FunctionSearchDesc function, 
boolean ifExists) throws UserException {
           if (FunctionUtil.dropFunctionImpl(function, ifExists, 
name2Function)) {
               Env.getCurrentEnv().getEditLog().logDropGlobalFunction(function);
               FunctionUtil.dropFromNereids(null, function);
           }
       }
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to