@Test
  public void testQueryNonEscapedSemiColon() throws Throwable {
    String SCRIPT_TEXT = "drop table if exists nonEscapedSemiColon;create table nonEscapedSemiColon "
        + "(key int, value int) ROW FORMAT DELIMITED FIELDS TERMINATED BY ';';show tables;";
    String EXPECTED_PATTERN = "nonescapedsemicolon";
    List<String> argList = getBaseArgs(miniHS2.getBaseJdbcURL());
    testScriptFile(SCRIPT_TEXT, argList, EXPECTED_PATTERN, true);
    //look for the " nonEscapedSemiColon " in the query text not the table name which comes
    //in the result
    EXPECTED_PATTERN = " nonEscapedSemiColon ";
    testScriptFile(SCRIPT_TEXT, argList, OutStream.ERR, EXPECTED_PATTERN, true);
    testScriptFile(SCRIPT_TEXT, argList, OutStream.OUT, EXPECTED_PATTERN, false);
  }
Test that Beeline queries don't treat semicolons inside quotations as query-ending characters.
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestBeeLineWithArgs.java