15 package com.cloudera.impala.analysis;
18 import com.cloudera.impala.thrift.TGrantRevokeRoleParams;
19 import com.google.common.base.Preconditions;
20 import com.google.common.base.Strings;
21 import com.google.common.collect.Lists;
32 Preconditions.checkNotNull(roleName);
33 Preconditions.checkNotNull(groupName);
49 TGrantRevokeRoleParams params =
new TGrantRevokeRoleParams();
50 params.setRole_names(Lists.newArrayList(
roleName_));
51 params.setGroup_names(Lists.newArrayList(
groupName_));
58 super.analyze(analyzer);
59 if (analyzer.getCatalog().getAuthPolicy().getRole(
roleName_) == null) {
TGrantRevokeRoleParams toThrift()
GrantRevokeRoleStmt(String roleName, String groupName, boolean isGrantStmt)
final boolean isGrantStmt_
void analyze(Analyzer analyzer)