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


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:
##########
@@ -554,6 +558,7 @@ public void dropDb(String dbName, boolean ifExists, boolean 
force) throws DdlExc
             unlock();
         }
 
+        FunctionUtil.cleanUdfCache(functionSignatures);

Review Comment:
   已参考现有回收站的处理方式调整清理时机:普通 `DROP DATABASE` 将数据库放入回收站,保留 `id2Function` 索引和 BE 侧 
Python 资源。
   
   回收站过期或被手动永久删除时,统一撤销索引并提交资源清理任务;`DROP DATABASE FORCE` 仍立即清理。
   
   RECOVER DATABASE 保留原 Function ID。普通 DROP 
期间保留原有资源,也不提交清理任务,因此旧查询仍持有包文件时,恢复后的新查询可以正常使用。



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