Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-23898

Query fails if identifier contains double quotes or semicolon char

    XMLWordPrintableJSON

    Details

    • Target Version/s:

      Description

      CREATE TABLE `t;`(a int);
      
      [ERROR]   TestMiniLlapLocalCliDriver.testCliDriver:62 Client execution failed with error code = 40000 
      running 
      CREATE TABLE `t 
      fname=test.q
      
      See ./ql/target/tmp/log/hive.log or ./itests/qtest/target/tmp/log/hive.log, or check ./ql/target/surefire-reports or ./itests/qtest/target/surefire-reports/ for specific test cases logs.
       org.apache.hadoop.hive.ql.parse.ParseException: line 2:15 character '<EOF>' not supported here
      
      CREATE TABLE `t"`(a int);
      
      [ERROR] Failures: 
      [ERROR]   TestMiniLlapLocalCliDriver.testCliDriver:62 Client execution failed with error code = 40000 
      running 
      
      CREATE TABLE `t"`(a int);
       
      fname=test.q
      
      See ./ql/target/tmp/log/hive.log or ./itests/qtest/target/tmp/log/hive.log, or check ./ql/target/surefire-reports or ./itests/qtest/target/surefire-reports/ for specific test cases logs.
       org.apache.hadoop.hive.ql.parse.ParseException: line 3:24 extraneous input ';' expecting EOF near '<EOF>'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kkasa Krisztian Kasa
                Reporter:
                kkasa Krisztian Kasa
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m