@Override
  public boolean listPartitionsByExpr(String catName, String dbName, String tblName, byte[] expr,
      String defaultPartitionName, int maxParts, List<Partition> result) throws TException {
    org.apache.hadoop.hive.metastore.api.Table table = getTempTable(dbName, tblName);
    if (table == null) {
      return super.listPartitionsByExpr(catName, dbName, tblName, expr,
          defaultPartitionName, maxParts, result);
    }
    assert result != null;
    result.addAll(getPartitionsForMaxParts(tblName, getPartitionedTempTable(table).listPartitionsByFilter(
        generateJDOFilter(table, expr, defaultPartitionName)), maxParts));
    return result.isEmpty();
  }
@param partialPvals partition values, can be partial.  This really means that missing values
                   are represented by empty str.
@param maxParts maximum number of partitions to fetch, or -1 for all
ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java