@Test
  public void testCreateTable() throws ParseException {
    parse("create table `c/b/o_t1`(key string, value string, c_int int, c_float float, c_boolean boolean)  partitioned by (dt string) row format delimited fields terminated by ',' STORED AS TEXTFILE");
    parse("create table `//cbo_t2`(key string, value string, c_int int, c_float float, c_boolean boolean)  partitioned by (dt string) row format delimited fields terminated by ',' STORED AS TEXTFILE");
    parse("create table `cbo_/t3////`(key string, value string, c_int int, c_float float, c_boolean boolean)  row format delimited fields terminated by ',' STORED AS TEXTFILE");

    parse("CREATE TABLE `p/a/r/t`(\n" +
        "    p_partkey INT,\n" +
        "    p_name STRING,\n" +
        "    p_mfgr STRING,\n" +
        "    p_brand STRING,\n" +
        "    p_type STRING,\n" +
        "    p_size INT,\n" +
        "    p_container STRING,\n" +
        "    p_retailprice DOUBLE,\n" +
        "    p_comment STRING\n" +
        ")");

    parse("CREATE TABLE `line/item` (L_ORDERKEY      INT,\n" +
        "                                L_PARTKEY       INT,\n" +
        "                                L_SUPPKEY       INT,\n" +
        "                                L_LINENUMBER    INT,\n" +
        "                                L_QUANTITY      DOUBLE,\n" +
        "                                L_EXTENDEDPRICE DOUBLE,\n" +
        "                                L_DISCOUNT      DOUBLE,\n" +
        "                                L_TAX           DOUBLE,\n" +
        "                                L_RETURNFLAG    STRING,\n" +
        "                                L_LINESTATUS    STRING,\n" +
        "                                l_shipdate      STRING,\n" +
        "                                L_COMMITDATE    STRING,\n" +
        "                                L_RECEIPTDATE   STRING,\n" +
        "                                L_SHIPINSTRUCT  STRING,\n" +
        "                                L_SHIPMODE      STRING,\n" +
        "                                L_COMMENT       STRING)\n" +
        "ROW FORMAT DELIMITED\n" +
        "FIELDS TERMINATED BY '|'");

    parse("create table `src/_/cbo` as select * from default.src");
  }
Parser tests special character in table names.
parser/src/test/org/apache/hadoop/hive/ql/parse/TestSpecialCharacterInTableNames.java