tableObj = hive.getTable(dbObj.getName(), privObj.getObjectName()); List<String> partValues = privObj.getPartKeys();
tableObj = hive.getTable(dbObj.getName(), privObj.getObjectName()); List<String> partValues = privObj.getPartKeys();
appendNonNull(builder, resource.getPartKeys()); appendNonNull(builder, resource.getColumns()); appendNonNull(builder, principal.getName());
appendNonNull(builder, resource.getPartKeys()); appendNonNull(builder, resource.getColumns()); appendNonNull(builder, principal.getName());
if (privObject.getPartKeys() != null && grantOption) { throw new HiveException("Grant does not support partition level."); if (tableObj != null) { if ((!tableObj.isPartitioned()) && privObject.getPartKeys() != null) { throw new HiveException( "Table is not partitioned, but partition name is present: partSpec=" + privObject.getPartKeys()); if (privObject.getPartKeys() != null) { Map<String, String> partSpec = Warehouse.makeSpecFromValues(tableObj.getPartitionKeys(), privObject.getPartKeys()); Partition partObj = hive.getPartition(tableObj, partSpec, false).getTPartition(); partValues = partObj.getValues();
if (privObject.getPartKeys() != null && grantOption) { throw new HiveException("Grant does not support partition level."); if (tableObj != null) { if ((!tableObj.isPartitioned()) && privObject.getPartKeys() != null) { throw new HiveException( "Table is not partitioned, but partition name is present: partSpec=" + privObject.getPartKeys()); if (privObject.getPartKeys() != null) { Map<String, String> partSpec = Warehouse.makeSpecFromValues(tableObj.getPartitionKeys(), privObject.getPartKeys()); Partition partObj = hive.getPartition(tableObj, partSpec, false).getTPartition(); partValues = partObj.getValues();
tableObj = hive.getTable(dbObj.getName(), privObj.getObjectName()); List<String> partValues = privObj.getPartKeys();
appendNonNull(builder, resource.getPartKeys()); appendNonNull(builder, resource.getColumns()); appendNonNull(builder, principal.getName());
if (privObject.getPartKeys() != null && grantOption) { throw new HiveException("Grant does not support partition level."); if (tableObj != null) { if ((!tableObj.isPartitioned()) && privObject.getPartKeys() != null) { throw new HiveException( "Table is not partitioned, but partition name is present: partSpec=" + privObject.getPartKeys()); if (privObject.getPartKeys() != null) { Map<String, String> partSpec = Warehouse.makeSpecFromValues(tableObj.getPartitionKeys(), privObject.getPartKeys()); Partition partObj = hive.getPartition(tableObj, partSpec, false).getTPartition(); partValues = partObj.getValues();