You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Kaveen Raajan (JIRA)" <ji...@apache.org> on 2015/04/09 10:49:12 UTC

[jira] [Updated] (HIVE-10277) Unable to process Comment line '--' in HIVE-1.1.0

     [ https://issues.apache.org/jira/browse/HIVE-10277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kaveen Raajan updated HIVE-10277:
---------------------------------
    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 
{quote}
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>'
{quote}


  was:
I tried to use comment line (*--*) in HIVE-1.1.0 command shell like,
~hive>--this is comment line~
~hive>show tables;~

I got error like 
{quote}
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>'
{quote}



> Unable to process Comment line '--' in HIVE-1.1.0
> -------------------------------------------------
>
>                 Key: HIVE-10277
>                 URL: https://issues.apache.org/jira/browse/HIVE-10277
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 1.0.0
>            Reporter: Kaveen Raajan
>            Priority: Minor
>              Labels: hive
>
> 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 
> {quote}
> 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>'
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)