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

Switch to Threaded View
Pig >> mail # user >> Splitting by unique values in a relation

Copy link to this message
Re: Splitting by unique values in a relation

Have you tried the SPLIT operator?
After splitting the relation into two separate relations you can STORE them
into different locations.

Best Regards,
Ruslan Al-Fakikh
On Sun, Sep 15, 2013 at 11:03 PM, praveenesh kumar <[EMAIL PROTECTED]>wrote:

> Hi,
> I have a relation A with (customer_id, data).
> I want to get the unique customer_ids, and spilt them into new
> files/relations. What is the most efficient way to do that.
> I can get the distinct customer_ids in a relation. But not able to
> understand how can can I use it in splitting the data by customer_id.
> Regards
> Praveenesh