@BeforeClass
  public static void startServices() throws Exception {
    HiveConf hiveConf = new HiveConf();
    hiveConf.setIntVar(ConfVars.HIVE_SERVER2_THRIFT_MIN_WORKER_THREADS, 2);
    hiveConf.setIntVar(ConfVars.HIVE_SERVER2_THRIFT_MAX_WORKER_THREADS, 2);
    hiveConf.setBoolVar(ConfVars.HIVE_SUPPORT_CONCURRENCY, false);
    // we configure the HS2 and metastore to allow parquet and orc tables to be allowed
    // to make incompatible changes.
    hiveConf.set(MetastoreConf.ConfVars.ALLOW_INCOMPATIBLE_COL_TYPE_CHANGES_TABLE_SERDES
            .getVarname(), "org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe,"
        + "org.apache.hadoop.hive.ql.io.orc.OrcSerde");

    miniHS2 = new MiniHS2.Builder().withMiniMR().withRemoteMetastore().withConf(hiveConf)
        .build();

    miniHS2.start(new HashMap<>());

    Connection hs2Conn = DriverManager
        .getConnection(miniHS2.getJdbcURL(), "hive", "hive");
    Statement stmt = hs2Conn.createStatement();

    // create test tables
    stmt.execute("drop table if exists testParquet");
    stmt.execute("create table testParquet (c1 string, c2 int) stored as parquet");
    stmt.execute("drop table if exists testOrc");
    stmt.execute("create table testOrc (c1 string, c2 int) stored as orc");
    stmt.execute("drop table if exists testText");
    stmt.execute("create table testText (c1 string, c2 int)");

    stmt.close();
    hs2Conn.close();
  }
Test which makes sure that incompatible column changes are allowed if the serde of the
table is defined in the configuration metastore.allow.incompatible.col.type.changes.serdes
itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestDisallowColChangesExceptionList.java