List<Partition> listPartitionsByFilter(String filter) throws MetaException {
    return pTree.getPartitionsByFilter(filter);
  }
This stores partition information for a temp table.
ql/src/java/org/apache/hadoop/hive/ql/metadata/TempTable.java