Hive 0.7.X and up supports using variables in queries. This is
documented in the SVN tree.

http://svn.apache.org/repos/asf/hive/trunk/docs/xdocs/language_manual/var_substitution.xml

You still might need some scripting outside of hive still but in many
cases this can get the job done.


On Wed, May 4, 2011 at 5:27 PM, Tim Spence <yogi.wan.ken...@gmail.com> wrote:
> I'm wondering the same.  I didn't notice it in the documentation for 0.7.
> My (possibly silly) way of dealing with it is to write ruby scripts to
> concatenate commands like
>
>> bin/hive -e "some statement"
>
> to a shell script, then execute the shell script.  Parameterized scripting
> would be so welcome right now.
> Tim
>
>
>
>
> On Wed, May 4, 2011 at 2:10 PM, Jonathan Bender <jonathan.ben...@gmail.com>
> wrote:
>>
>> Hey all,
>> Just wondering if there is native support for input arguments on Hive
>> scripts.
>> eg. $ bin/hive -f script.q <arg1 arg2>
>> Any documentation I could reference to look into this further?
>> Cheers,
>> Jon
>

Reply via email to