hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chaozhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-5669) The '-i' argument in the Hive Shell doesn't work properly
Date Mon, 28 Oct 2013 09:39:31 GMT
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)

Mime
View raw message