saihemanth-cloudera commented on code in PR #4617:
URL: https://github.com/apache/hive/pull/4617#discussion_r1298665170


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/function/AbstractFunctionAnalyzer.java:
##########
@@ -70,7 +71,7 @@ protected void addEntities(String functionName, String 
className, boolean isTemp
       }
     }
     if (database != null) {
-      outputs.add(new WriteEntity(database, 
WriteEntity.WriteType.DDL_NO_LOCK));
+      inputs.add(new ReadEntity(database));

Review Comment:
   You should only do this if the query is drop function. That's the reason why 
we see the difference in .q.out changes with create function as well.



-- 
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: gitbox-unsubscr...@hive.apache.org

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

Reply via email to