assert(isArchived(p) == false); Map<String, String> params = p.getParameters();
/** * Sets the appropriate attributes in the supplied Partition object to mark * it as not archived. Note that the metastore is not touched - a separate * call to alter_partition is needed. * * @param p - the partition to modify */ private void setUnArchived(Partition p) { assert(isArchived(p) == true); String parentDir = getOriginalLocation(p); setIsArchived(p, false); setOriginalLocation(p, null); assert(parentDir != null); p.setLocation(parentDir); }
if (!isArchived(p)) { Path location = new Path(p.getLocation()); Path leftOverArchiveDir = new Path(location.getParent(),