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)