You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by ugo jardonnet <ug...@gmail.com> on 2011/09/02 17:26:58 UTC
Re-assign relation name
Is it safe and efficient to re-use relation names with pig >= 0.8.1:
A = load 'NYSE_dividends' (exchange, symbol, date, dividends);
A = filter A by dividends > 0;
Re: Re-assign relation name
Posted by Norbert Burger <no...@gmail.com>.
On Fri, Sep 2, 2011 at 11:26 AM, ugo jardonnet <ug...@gmail.com> wrote:
> Is it safe and efficient to re-use relation names with pig >= 0.8.1:
>
> A = load 'NYSE_dividends' (exchange, symbol, date, dividends);
> A = filter A by dividends > 0;
It's safe, but not usually recommended. Take a look at:
http://ofps.oreilly.com/titles/9781449302641/intro_pig_latin.html
In your example, Pig loses track of the original A.
Norbert