@Test
  public void testListPartitionNamesRequest() throws Exception {
    createTable4PartColsParts(getClient());
    checkPartitionNames(1, Lists.newArrayList("1999", "01", "02"));
    checkPartitionNames(2, Lists.newArrayList("2017", "", ""));
    checkPartitionNames(0, Lists.newArrayList("2008", "02", "10"));
  }
Test class for list partitions related methods on temporary tables.
ql/src/test/org/apache/hadoop/hive/ql/metadata/TestSessionHiveMetastoreClientListPartitionsTempTable.java