@Test
  /**
   * Test setting create external purge table by default in jdbc config
   * @throws SQLException
   */
  public void testCreateTableAsExternal() throws SQLException {
    Connection con = getConnection(testDbName + ";hiveCreateAsExternalLegacy=true", "");
    Statement stmt = con.createStatement();
    ResultSet res = stmt.executeQuery("set hive.create.as.external.legacy");
    assertTrue("ResultSet is empty", res.next());
    assertEquals("hive.create.as.external.legacy=true", res.getObject(1));
    stmt.close();
    con.close();
  }
Tests setting a custom fetch size for the RPC call
@throws SQLException
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcDriver2.java