You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "chaozhang (JIRA)" <ji...@apache.org> on 2013/10/28 10:39:31 UTC
[jira] [Created] (HIVE-5669) The '-i' argument in the Hive Shell
doesn't work properly
chaozhang created HIVE-5669:
-------------------------------
Summary: The '-i' argument in the Hive Shell doesn't work properly
Key: HIVE-5669
URL: https://issues.apache.org/jira/browse/HIVE-5669
Project: Hive
Issue Type: Bug
Reporter: chaozhang
Priority: Minor
I‘m starting to read the source code about the hive-0.90. I found that the ’-i‘ arg in the hive shell can process more than one files. But when i tried 'hive -i ***.sql ***.sql' in the command line, it just processed the first file.
Then I looked into the source code carefully, finding that the use of apache common-cli may be not right.
The 'options.addOption' code about '-i' in the OptionsProcessor.java file, may have some problem.The action hasArg() is the wrong thing. In the '-i' arg, it should be changed to hasOptionalArgs() according to the related processing code.
--
This message was sent by Atlassian JIRA
(v6.1#6144)