@Before
  public void setup() throws TException {
    // This is default case with setugi off for both client and server
    client = createClient();
    createTestTables();
    origPartitions = client.listPartitions(dbName, tblName, (short) -1);
    tbl = client.getTable(dbName, tblName);
    // set directSQL to true explicitly
    client.setMetaConf(ConfVars.TRY_DIRECT_SQL.getVarname(), "true");
    client.setMetaConf(ConfVars.TRY_DIRECT_SQL_DDL.getVarname(), "true");
  }
Tests for getPartitionsWithSpecs metastore API. This test create some partitions and makes sure
that getPartitionsWithSpecs returns results which are comparable with the get_partitions API when
various combinations of projection spec are set. Also checks the JDO code path in addition to
directSQL code path
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestGetPartitionsUsingProjectionAndFilterSpecs.java