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


##########
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:
   Yeah, for create/drop we only need 'select/read' privileges. 



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