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

Unable to process Comment line '--' in HIVE-1.1.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 1.0.0
    • 1.3.0
    • Hive
    • Patch

    Description

      I tried to use comment line (--) in HIVE-1.1.0 grunt shell like,
      hive>--this is comment line
      hive>show tables;

      I got error like

      NoViableAltException(-1@[])
      at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:
      1020)
      at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:19
      9)
      at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:16
      6)
      at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:393)
      at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:307)
      at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1112)
      at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1160)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1049)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1039)
      at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:2
      07)
      at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:159)
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:370)
      at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:754
      )
      at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
      at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
      FAILED: ParseException line 2:0 cannot recognize input near '<EOF>' '<EOF>' '<EO
      F>'

      Attachments

        1. HIVE-10277.3.patch
          0.8 kB
          Chinna Rao Lalam
        2. HIVE-10277.2.patch
          0.5 kB
          Chinna Rao Lalam
        3. HIVE-10277-1.patch
          0.6 kB
          Kaveen Raajan
        4. HIVE-10277.patch
          0.6 kB
          Chinna Rao Lalam

        Activity

          People

            chinnalalam Chinna Rao Lalam
            KaveenBigdata Kaveen Raajan
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: