@Test
  /**
   * Test running parallel queries (with parallel queries disabled).
   * Should be serialized in the order of execution.
   * @throws Exception
   */
  public void testSerializedExecution() throws Exception {
    HiveStatement stmt1 = (HiveStatement) con.createStatement();
    HiveStatement stmt2 = (HiveStatement) con.createStatement();
    stmt1.execute("SET hive.driver.parallel.compilation=false");
    stmt1.execute("SET hive.server2.async.exec.async.compile=false");
    stmt2.execute("SET hive.driver.parallel.compilation=false");
    stmt2.execute("SET hive.server2.async.exec.async.compile=false");
    stmt1.execute("create temporary function sleepMsUDF as '" + SleepMsUDF.class.getName() + "'");
    stmt1.execute("create table test_ser_1(i int)");
    stmt1.executeAsync("insert into test_ser_1 select sleepMsUDF(under_col, 500) from "
        + tableName + " limit 1");
    boolean isResultSet = stmt2.executeAsync("select * from test_ser_1");
    assertTrue(isResultSet);
    ResultSet rs = stmt2.getResultSet();
    assertTrue(rs.next());
    assertFalse(rs.next());
    stmt1.close();
    stmt2.close();
  }
Test setting create external purge table by default in jdbc config
@throws SQLException
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcDriver2.java