pSpec.getPartitions().remove(index);
}
@Override
public Partition getCurrent() {
PartitionWithoutSD partWithoutSD = pSpec.getPartitions().get(index);
StorageDescriptor partSD = new StorageDescriptor(pSpec.getSd());
partSD.setLocation(partSD.getLocation() + partWithoutSD.getRelativePath());
return new Partition(
partWithoutSD.getValues(),
partitionSpecWithSharedSDProxy.partitionSpec.getDbName(),
partitionSpecWithSharedSDProxy.partitionSpec.getTableName(),
partWithoutSD.getCreateTime(),
partWithoutSD.getLastAccessTime(),
partSD,
partWithoutSD.getParameters()
);
}