Partition getPartitionWithAuthInfo(List<String> partionVals, String userName, List<String> groupNames)
      throws MetaException {
    Partition partition = getPartition(partionVals);
    if (partition == null) {
      return null;
    }
    return checkPrivilegesForPartition(partition, userName, groupNames) ? partition : null;
  }
This stores partition information for a temp table.
ql/src/java/org/apache/hadoop/hive/ql/metadata/TempTable.java