From 06e74db01055b4d1d73920222314834db63bebcf Mon Sep 17 00:00:00 2001 From: dtb <2011xuesong@gmail.com> Date: Wed, 24 Apr 2024 14:48:31 +0800 Subject: [PATCH] Delete excess lines of code --- .../bdp/waggledance/server/FederatedHMSHandler.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/server/FederatedHMSHandler.java b/waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/server/FederatedHMSHandler.java index 770d1c855..84213adc9 100644 --- a/waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/server/FederatedHMSHandler.java +++ b/waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/server/FederatedHMSHandler.java @@ -1341,14 +1341,6 @@ public GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilege public GrantRevokePrivilegeResponse refresh_privileges(HiveObjectRef hiveObjectRef, String authorizer, GrantRevokePrivilegeRequest grantRevokePrivilegeRequest) throws MetaException, TException { DatabaseMapping databaseMapping = checkWritePermissions(hiveObjectRef.getDbName()); - PrivilegeBag privilegeBag = grantRevokePrivilegeRequest.getPrivileges(); - if (privilegeBag != null && privilegeBag.getPrivileges() != null) { - for (HiveObjectPrivilege hiveObjectPrivilege : privilegeBag.getPrivileges()) { - if (hiveObjectPrivilege.getHiveObject() != null) { - databaseMapping.transformInboundHiveObjectRef(hiveObjectPrivilege.getHiveObject()); - } - } - } return databaseMapping.getClient().refresh_privileges(databaseMapping.transformInboundHiveObjectRef(hiveObjectRef), authorizer, databaseMapping.transformInboundGrantRevokePrivilegesRequest(grantRevokePrivilegeRequest)); }