OK, then just have an input file with one line of dummy data, and do something like this…
DUMMY_DATA = load 'dummy_data'; REAL_DATA = foreach DUMMY_DATA generate '$my_param'; On Wed, Nov 4, 2015 at 3:20 PM, Norbert Burger <[email protected]> wrote: > Yes, I was because this param value changes with every invocation, I was > hoping for something more clever than creating the file at the driver > level. A fine fall-back solution, though. > > > On Wed, Nov 4, 2015 at 1:08 PM, Steve Terrell <[email protected]> > wrote: > > > Just off the top of my head… If you are able to pass strA as a > parameter, > > you should also be able to write it to a file that can be loaded in as an > > alias in the Pig script. Perhaps you are looking for something more > > direct? > > > > On Wed, Nov 4, 2015 at 2:46 PM, Norbert Burger <[email protected] > > > > wrote: > > > > > Hi folks - let's say I have incoming param which has value "strA". Is > > > there a clever way to initialize an alias within Pig that contains a > > single > > > tuple with value "strA"? > > > > > > In other words, is it possible to initialize an alias? > > > > > > Norbert > > > > > >
