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

Switch to Threaded View
Pig >> mail # user >> Pig script : Need help

Copy link to this message
Re: Pig script : Need help
Thanks Ankit,

I am getting the desired result. What i did was I group by year but did not
use any aggregate function so that the output is a bag(tuples).
Now when I try to apply replace function for replacing the curly braces and
brackets so that it will look 2014,2013 but it gives me error can't cast
tuple to chararray.
Cannot cast tuple with schema

On Tue, Apr 1, 2014 at 5:47 PM, Ankit Bhatnagar <[EMAIL PROTECTED]>wrote: