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

Zheng Shao commented on HIVE-47:
--------------------------------

The patch didn't pass unit tests.

    [junit] 08/12/09 16:42:57 ERROR ql.Driver: FAILED: Parse Error: line 0:-1 
cannot recognize input '<EOF>'

    [junit] org.apache.hadoop.hive.ql.parse.ParseException: line 0:-1 cannot 
recognize input '<EOF>'

    [junit]     at 
org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:258)
    [junit]     at org.apache.hadoop.hive.ql.Driver.run(Driver.java:163)
    [junit]     at 
org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:174)


> [Hive] CLI not supporting multiline queries from an input file
> --------------------------------------------------------------
>
>                 Key: HIVE-47
>                 URL: https://issues.apache.org/jira/browse/HIVE-47
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>            Reporter: Jeremy Huylebroeck
>            Assignee: Ashish Thusoo
>            Priority: Trivial
>         Attachments: patch-0.17.txt, patch-47_4.txt, patch-trunk.txt, 
> patch2-0.17.txt
>
>
> calling "hive -f filename" allows to pass HQL queries from a file.
> but the queries can't be on multiple lines as we would expect by reading Hive 
> documentation.
> a proposed fix is to modify CliDriver.processReader.

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

Reply via email to