saihemanth-cloudera commented on a change in pull request #1503: URL: https://github.com/apache/hive/pull/1503#discussion_r527035374
########## File path: ql/src/java/org/apache/hadoop/hive/ql/exec/Registry.java ########## @@ -583,7 +583,13 @@ public void unregisterFunction(String functionName) throws HiveException { } mFunctions.remove(functionName); fi.discarded(); + FunctionResource[] resources = fi.getResources(); if (fi.isPersistent()) { + Map<String, String> udfCacheMap = SessionState.getUDFCacheMap(); + for(FunctionResource fr : resources){ + //remove from udf cache if it's saved. + udfCacheMap.remove(fr.getResourceURI()); Review comment: Yeah we need to clear the downloaded files, when unregistering a 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org