You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "iryoung jeong (JIRA)" <ji...@apache.org> on 2010/12/21 05:38:02 UTC

[jira] Updated: (HIVE-1431) Hive CLI can't handle query files that begin with comments

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

iryoung jeong updated HIVE-1431:
--------------------------------

    Attachment: hive-1431.patch

avoiding the issue by removing comments.

> Hive CLI can't handle query files that begin with comments
> ----------------------------------------------------------
>
>                 Key: HIVE-1431
>                 URL: https://issues.apache.org/jira/browse/HIVE-1431
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Carl Steinbach
>             Fix For: 0.7.0
>
>         Attachments: hive-1431.patch
>
>
> {code}
> % cat test.q
> -- This is a comment, followed by a command
> set -v;
> -- 
> -- Another comment
> --
> show tables;
> -- Last comment
> (master) [ ~/Projects/hive ]
> % hive < test.q
> Hive history file=/tmp/carl/hive_job_log_carl_201006231606_1140875653.txt
> hive> -- This is a comment, followed by a command
>     > set -v;
> FAILED: Parse Error: line 2:0 cannot recognize input 'set'
> hive> -- 
>     > -- Another comment
>     > --
>     > show tables;
> OK
> rawchunks
> Time taken: 5.334 seconds
> hive> -- Last comment
>     > (master) [ ~/Projects/hive ]
> % 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.