Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

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


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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB