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

Bharathkrishna Guruvayoor Murali commented on HIVE-19047:
---------------------------------------------------------

The option "i" is interpreted using the Apache Commons CLI jar, hence I guess 
it follows the standard way of parsing the arguments passed in command line.

I tested the patch and I can see that both "-i f1 f2" or "-i f1 -i f2" works 
now.

> Only the first init file is interpreted
> ---------------------------------------
>
>                 Key: HIVE-19047
>                 URL: https://issues.apache.org/jira/browse/HIVE-19047
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>            Reporter: Zoltan Haindrich
>            Assignee: Bharathkrishna Guruvayoor Murali
>            Priority: Major
>         Attachments: HIVE-19047.1.patch
>
>
> I've passed multiple {{-i}} options to beeline; and I've expected to load 
> both of them...but unfortunately it only parsed the first file (and ignored 
> the second entirely)
> I think it would be better to:
> * either reject the command if it has multiple "-i" given
> * or load *all* "-i" scripts



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to