@Test
  public void testSubQueriesNotExistsNoAggCorrHaving() throws ParseException {
    parse("select * \n" +
        "\n" +
        "from `src/_/cbo` b \n" +
        "\n" +
        "group by key, value\n" +
        "\n" +
        "having not exists \n" +
        "\n" +
        "  (select a.key \n" +
        "\n" +
        "  from `src/_/cbo` a \n" +
        "\n" +
        "  where b.value = a.value  and a.key = b.key and a.value > 'val_12'\n" +
        "\n" +
        "  )\n" +
        "\n");
  }
Parser tests special character in table names.
parser/src/test/org/apache/hadoop/hive/ql/parse/TestSpecialCharacterInTableNames.java