[ https://issues.apache.org/jira/browse/HIVE-10277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xuefu Zhang reopened HIVE-10277: -------------------------------- Patch is reverted because of test failures. Please resubmit patch if problem remains. > 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 > Fix For: 1.3.0 > > 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)