On a different context, I was once stuck with the same problem but was able to navigate this using bincond operator. http://ofps.oreilly.com/titles/9781449302641/intro_pig_latin.html Not sure, how you would hack in here.. but i have a feeling it can be pulled off.
On Mon, Nov 19, 2012 at 8:49 PM, Jonathan Coveney <[email protected]>wrote: > In pure Pig, you wouldn't do something like this. However, PIg supports > control flow in Python (I really should get on making the JRuby wrapper, > but I digress). You can find docs for this on the pig website. Basically > the control flow is in Python, and you launch jobs from there. > > > 2012/11/19 Sheng Guo <[email protected]> > > > Hi, > > > > I am trying to do some tasks with 'if else' inside the pig > > script, specifically, if the folder exists, we do some statements and > join > > the data into some table, otherwise, just ignore this step. > > How can I do this in pig? > > > > Thanks, > > > > Sheng > > >
