hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chinna Rao Lalam (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-10277) Unable to process Comment line '--' in HIVE-1.1.0
Date Thu, 16 Apr 2015 12:34:59 GMT

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

Chinna Rao Lalam updated HIVE-10277:
------------------------------------
    Attachment: HIVE-10277.2.patch

Why to reframe the line again because we won't hit comments very frequently, so unnecessarily
we will reframe the line so many times, if we don't want to enter into processcmd() we can
skip before itself.

> 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
>            Assignee: Chinna Rao Lalam
>            Priority: Minor
>              Labels: hive
>         Attachments: HIVE-10277-1.patch, HIVE-10277.2.patch, HIVE-10277.patch
>
>
> 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)

Mime
View raw message