[
https://issues.apache.org/jira/browse/HADOOP-4501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642212#action_12642212
]
Prasad Chakka commented on HADOOP-4501:
---------------------------------------
also, mysql client assume that a newline is a word break. so 'select\n* from
tabA;' is a valid query in mysql but not in the code above or in main()
function. I think we do want to make it as similar to mysql client as possible.
> CLI not supporting multiline queries from an input file
> -------------------------------------------------------
>
> Key: HADOOP-4501
> URL: https://issues.apache.org/jira/browse/HADOOP-4501
> Project: Hadoop Core
> Issue Type: Improvement
> Components: contrib/hive
> Affects Versions: 0.17.3
> Reporter: Jeremy Huylebroeck
> Priority: Trivial
> Fix For: 0.17.3
>
> Attachments: patch-0.17.txt, patch-trunk.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.