@Override
  public Partition getPartition(String catName, String dbName, String tblName, String name) throws TException {
    org.apache.hadoop.hive.metastore.api.Table table = getTempTable(dbName, tblName);
    if (table == null) {
      return super.getPartition(catName, dbName, tblName, name);
    }
    TempTable tt = getPartitionedTempTable(table);
    Partition partition = tt.getPartition(name);
    if (partition == null) {
      throw new NoSuchObjectException("Partition with name " + name + " for table " + tblName + " in database " +
              dbName + " is not found.");
    }

    return deepCopy(partition);
  }
Loading Dynamic Partitions calls this. The partitions which are loaded, must belong to the
same table.
@param partitions the new partitions to be added, must be not null
@return number of partitions that were added
@throws TException
ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java