@Before
  public void setUp() throws Exception {
    // Get new client
    client = metaStore.getClient();

    // Clean up the database
    client.dropDatabase(DB_NAME, true, true, true);
    metaStore.cleanWarehouseDirs();
    DatabaseBuilder databaseBuilder = new DatabaseBuilder().setName(DB_NAME);
    databaseBuilder.create(client, metaStore.getConf());

    // Create test tables with 3 partitions
    createTable(TABLE_NAME, getYearPartCol());
    createPartitions();
  }
Tests for updating partition column stats. All the tests will be executed first using embedded metastore and then
with remote metastore. For embedded metastore, TRY_DIRECT_SQL is set to false. For remote metastore TRY_DIRECT_SQL
is set to true. setPartitionColumnStatistics is modified to use direct sql in case direct sql is enabled. This tests
makes sure that both the code path (direct sql enabled and disabled) is tested.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestPartitionStat.java