I see two ways to do this. we can do the variable substitution at the CLI level. Or we can do this at the query processor level.
In each case the variables would be set into the SessionState and the respective component could do the substitution. I think having the query processor handle this would be better. If we don't here back in a few I will gladly do this as I can leverage this as well. Edward On Tue, Dec 29, 2009 at 8:57 PM, Zheng Shao <[email protected]> wrote: > Hi Vijay, > > I sent out an inquiry to the guys at aws on 12/21. There is no reply > yet. It might be that people are on vacation. > Let's wait a bit to see if they can contribute that back to open-source. > > Zheng > > On Tue, Dec 29, 2009 at 5:10 PM, Vijay <[email protected]> wrote: >> Sorry to bump the thread again. I thought this was lost during the holidays. >> Anybody have any ideas about this? >> >> On Sat, Dec 19, 2009 at 6:29 PM, Vijay <[email protected]> wrote: >>> >>> Amazon Elastic MapReduce version of Hive seems to have a nice feature >>> called "Variables." Basically you can define a variable via command-line >>> while invoking hive with -d DT=2009-12-09 and then refer to the variable via >>> ${DT} within the hive queries. This could be extremely useful. I can't seem >>> to find this feature even on trunk. Is this feature currently anywhere in >>> the roadmap? >> >> > > > > -- > Yours, > Zheng >
