protected List<Partition> setupProjectionTestTable() throws Throwable {
    //String catName = "catName";
    String dbName = "compdb";
    String tblName = "comptbl";
    String typeName = "Person";
    //String catName = "catName";
    Map<String, String> dummyparams = new HashMap<>();
    dummyparams.put("key1", "val1");
    dummyparams.put("excludeKey1", "excludeVal1");
    dummyparams.put("excludeKey2", "excludeVal2");
    cleanUp(dbName, tblName, typeName);

    List<List<String>> values = new ArrayList<>();
    values.add(makeVals("2008-07-01 14:13:12", "14"));
    values.add(makeVals("2008-07-01 14:13:12", "15"));
    values.add(makeVals("2008-07-02 14:13:12", "15"));
    values.add(makeVals("2008-07-03 14:13:12", "151"));

    List<Partition> createdPartitions =
        createMultiPartitionTableSchema(dbName, tblName, typeName, values);
    Table tbl = client.getTable(dbName, tblName);
    // add some dummy parameters to one of the partitions to confirm the fetching logic is working
    Partition newPartition = createdPartitions.remove(0);
    //Map<String, String> sdParams = new HashMap<>();
    //dummyparams.put("sdkey1", "sdval1");
    newPartition.setParameters(dummyparams);
    //newPartition.getSd().setParameters(sdParams);

    client.alter_partition(dbName, tblName, newPartition);
    createdPartitions.add(0, newPartition);
    return createdPartitions;
  }
tests create table and partition and tries to drop the table without
droppping the partition
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java