);
List<HiveObjectPrivilege> privList = new ArrayList<HiveObjectPrivilege>();
for(HivePrivilegeInfo privInfo : privInfos){
HivePrincipal principal = privInfo.getPrincipal();
HivePrivilegeObject privObj = privInfo.getObject();
HivePrivilege priv = privInfo.getPrivilege();
PrivilegeGrantInfo grantInfo =
AuthorizationUtils.getThriftPrivilegeGrantInfo(priv, privInfo.getGrantorPrincipal(),
privInfo.isGrantOption(), privInfo.getGrantTime());