Re: Dynamically generating load/store path

2012-11-13 Thread Prashant Kommireddi
You could write a custom load/storefunc and override setLocation(String location, Job job). The logic you want the UDF for could go in there. On Tue, Nov 13, 2012 at 4:45 PM, Jonathan Coveney wrote: > If it's a parameter, it could just be passed in as a $var > > > 2012/11/13 Miki Tebeka > > >

Re: Dynamically generating load/store path

2012-11-13 Thread Jonathan Coveney
If it's a parameter, it could just be passed in as a $var 2012/11/13 Miki Tebeka > Greetings, > > Is there a way to dynamically generate (maybe via UDF) the path to > load/store data? (something like "A = LOAD InputPath() USING > PigStorage();") > > Currently we calculate the load/store path ou

Dynamically generating load/store path

2012-11-13 Thread Miki Tebeka
Greetings, Is there a way to dynamically generate (maybe via UDF) the path to load/store data? (something like "A = LOAD InputPath() USING PigStorage();") Currently we calculate the load/store path outside the pig script and pass it as parameter. However we'd like to have a UDF that does that. T