Skip to content

Commit

Permalink
Use static import on ThriftHiveMetastoreClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveen2112 committed Dec 3, 2021
1 parent d08c5df commit f5cb7a4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
import static io.trino.plugin.hive.metastore.MetastoreUtil.adjustRowCount;
import static java.lang.String.format;
import static java.util.Objects.requireNonNull;
import static org.apache.hadoop.hive.metastore.api.GrantRevokeType.REVOKE;
import static org.apache.hadoop.hive.metastore.txn.TxnUtils.createValidTxnWriteIdList;

public class ThriftHiveMetastoreClient
Expand Down Expand Up @@ -424,7 +425,7 @@ private void removeGrant(String role, String granteeName, PrincipalType granteeT
throws TException
{
GrantRevokeRoleRequest request = new GrantRevokeRoleRequest();
request.setRequestType(GrantRevokeType.REVOKE);
request.setRequestType(REVOKE);
request.setRoleName(role);
request.setPrincipalName(granteeName);
request.setPrincipalType(granteeType);
Expand Down

0 comments on commit f5cb7a4

Please sign in to comment.