hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Per Ullberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-3296) comments before a set statement in a test do not work
Date Mon, 13 Apr 2015 09:06:12 GMT

    [ https://issues.apache.org/jira/browse/HIVE-3296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14492104#comment-14492104
] 

Per Ullberg commented on HIVE-3296:
-----------------------------------

This also fails in the Cli so it's not isolated to the Testing Infrastructure.

{code}
hive> 
    > -- this is a comment
    > select * from some_table limit 1;
OK
...
hive> 
    > -- this is another comment
    > set foo=bar;
NoViableAltException(213@[])
	at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:900)
	at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:190)
	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:435)
	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:353)
	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:979)
	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1022)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:915)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:905)
	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216)
	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413)
	at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:781)
	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:614)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
FAILED: ParseException line 2:0 cannot recognize input near 'set' 'foo' '='
{code}

Running CDH5beta1-Packaging-Hive-2013-10-27_18-38-32/hive-0.11.0-cdh5.0.0-beta-1



> comments before a set statement in a test do not work
> -----------------------------------------------------
>
>                 Key: HIVE-3296
>                 URL: https://issues.apache.org/jira/browse/HIVE-3296
>             Project: Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Namit Jain
>            Assignee: Srinivas Vemuri
>
> The following test fails:::
> -- test comment
> set hive.test="foo";
> create table tst(key string);
> The output is::
> FAILED: ParseException line 2:0 cannot recognize input near 'set' 'hive' '.'
> However, if the comment position is changed it works fine.
> The following test:
> -- test comment
> create table tst(key string);
> set hive.test="foo";
> works fine



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

Mime
View raw message