dengzhhu653 commented on code in PR #6549:
URL: https://github.com/apache/hive/pull/6549#discussion_r3532835246


##########
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/events/AlterTableEvent.java:
##########
@@ -122,6 +127,31 @@ private List<HivePrivilegeObject> getOutputHObjs() {
     return ret;
   }
 
+  private void addAvroSchemaUrlInputAuth(List<HivePrivilegeObject> ret, 
PreAlterTableEvent event) {
+    Table newTable = event.getNewTable();
+    Table oldTable = event.getOldTable();
+    if 
(!AvroSerDe.class.getName().equals(newTable.getSd().getSerdeInfo().getSerializationLib()))
 {

Review Comment:
   Can we use `String newSchemaUrl = AuthorizationUtils
           .getFilesystemAvroSchemaUrlToAuthorize(new 
org.apache.hadoop.hive.ql.metadata.Table(newTable));` to get the schema url



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