Partition dropPartition(String partitionName) throws MetaException, NoSuchObjectException {
    Map<String, String> specFromName = makeSpecFromName(partitionName);
    if (specFromName.isEmpty()) {
      throw new NoSuchObjectException("Invalid partition name " + partitionName);
    }
    List<String> pVals = new ArrayList<>();
    for (FieldSchema field : tTable.getPartitionKeys()) {
      String val = specFromName.get(field.getName());
      if (val == null) {
        throw new NoSuchObjectException("Partition name " + partitionName + " and table partition keys " + Arrays
            .toString(tTable.getPartitionKeys().toArray()) + " does not match");
      }
      pVals.add(val);
    }
    return pTree.dropPartition(pVals);
  }
This stores partition information for a temp table.
ql/src/java/org/apache/hadoop/hive/ql/metadata/TempTable.java