What bug? Do you get an exception? It seems like you're trying to describe an alias that doesn't exist in your script. 'gpWeekRanked2' in store gpWeekRanked INTO 'gpWeekRanked2'; is actually a path (usually in HDFS) you store the data into. You can't describe it.
On 13 March 2014 02:36, Suhas Satish <suhas.sat...@gmail.com> wrote: > The following pig script hangs due to a bug. Is there a different way to > rewrite it and achieve the same functionality? Any ideas to do things > differently are appreciated. > > tWeek = LOAD '/tmp/test_data.txt' USING PigStorage ('|') AS (WEEK:int, > DESCRIPTION:chararray, END_DATE:chararray, PERIOD:int); > > gTWeek = FOREACH tWeek GENERATE WEEK AS WEEK, PERIOD AS PERIOD; > > pWeek = FILTER gTWeek BY (PERIOD == 201312); > > pWeekRanked = RANK pWeek BY WEEK ASC DENSE; > > gpWeekRanked = FOREACH pWeekRanked GENERATE $0; > > store gpWeekRanked INTO 'gpWeekRanked2'; > > describe gpWeekRanked2; > > > > Thanks, > Suhas. >