@SuppressWarnings("SameParameterValue")
  private Table createTable(String tableName, List<FieldSchema> partCols) throws Exception {
    String type = "MANAGED_TABLE";
    String location = metaStore.getWarehouseRoot() + "/" + tableName;

    return new TableBuilder()
            .setDbName(DB_NAME)
            .setTableName(tableName)
            .setType(type)
            .addCol("test_id", "int", "test col id")
            .addCol("test_value", "string", "test col value")
            .setPartCols(partCols)
            .setLocation(location)
            .create(client, metaStore.getConf());
  }
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