Thanks, although I'd suggest this is essentially the same as option #1.  I
guess I was hoping there was a clever way to construct a bag/alias without
a LOAD.

I was a bit surprised there's not a UDF in DataFu or Piggybank that does
this.

On Wednesday, November 4, 2015, Steve Terrell <[email protected]> wrote:

> 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]
> <javascript:;>>
> 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]
> <javascript:;>>
> > 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] <javascript:;>
> > >
> > > 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
> > > >
> > >
> >
>

Reply via email to