Partition getPartition(String partName) throws MetaException {
    if (partName == null || partName.isEmpty()) {
      throw new MetaException("Partition name cannot be null or empty");
    }
    return pTree.getPartition(partName);
  }
This stores partition information for a temp table.
ql/src/java/org/apache/hadoop/hive/ql/metadata/TempTable.java