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

Bharathkrishna Guruvayoor Murali updated HIVE-19047:
----------------------------------------------------
    Status: Patch Available  (was: In Progress)

Submitting the patch to fix this issue.

Fixing two things here:
1. Option '-i' should be built using hasArgs() method as it needs to support 
multiple arguments (now it accepts multiple init filenames).

2. runInit() was returning from the for loop, which makes it execute only one 
file (now it executes multiple files).

> 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