Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> Re-assign relation name


+
ugo jardonnet 2011-09-02, 15:26
Copy link to this message
-
Re: Re-assign relation name
On Fri, Sep 2, 2011 at 11:26 AM, ugo jardonnet <[EMAIL PROTECTED]> 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