hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elliot West (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-8396) Hive CliDriver command splitting can be broken when comments are present
Date Mon, 16 Nov 2015 13:09:10 GMT

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

Elliot West commented on HIVE-8396:
-----------------------------------

Worth noting that there is a complementary symmetric set of behaviours that are also not in
agreement:
h4. CLI entry
{code}
hive (default)> set z="
              > --hello
              > ";
hive (default)> set z;
z="
--hello
"
{code}
h4. Script execution
{code}
[ewest@host]$ cat z.hql
set z="
-- hello
";
set z;
[ewest@host]$ hive -f z.hql
z="
"
{code}

> Hive CliDriver command splitting can be broken when comments are present
> ------------------------------------------------------------------------
>
>                 Key: HIVE-8396
>                 URL: https://issues.apache.org/jira/browse/HIVE-8396
>             Project: Hive
>          Issue Type: Bug
>          Components: Parser, Query Processor
>    Affects Versions: 0.14.0
>            Reporter: Sergey Shelukhin
>
> {noformat}
> -- SORT_QUERY_RESULTS
> set hive.cbo.enable=true;
> ... commands ...
> {noformat}
> causes
> {noformat}
> 2014-10-07 18:55:57,193 ERROR ql.Driver (SessionState.java:printError(825)) - FAILED:
ParseException line 2:4 missing KW_ROLE at 'hive' near 'hive'
> {noformat}
> If the comment is moved after the command it works.
> I noticed this earlier when I comment out parts of some random q file for debugging purposes,
and it starts failing. This is annoying.



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

Mime
View raw message