[ 
https://issues.apache.org/jira/browse/PIG-3813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Suhas Satish updated PIG-3813:
------------------------------

    Description: 
When the following script is run, pig goes into an infinite loop. This was 
reproduced on pig trunk as of March 12, 2014 on apache hadoop 1.2. 
test_data.txt has been attached. 

test.pig
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 'gpWeekRanked';
describe gpWeekRanked;
---------------------------------------------------

The res object of class Result, gets its value from leaf.getNextTuple()
This gets an empty tuple 
() 
with STATUS_OK.

SO the while(true) condition never gets an End of Processing (EOP) and so does 
not exit. 
 


  was:
When the following script is run, pig goes into an infinite loop. This was 
reproduced on pig trunk as of March 12, 2014 on apache hadoop 1.2. 
test_data.txt has been attached. 

test.pig
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 'gpWeekRanked';
describe gpWeekRanked;
---------------------------------------------------


>  runPipeline() method returns empty tuples and goes into infinite loop under 
> certain conditions
> -----------------------------------------------------------------------------------------------
>
>                 Key: PIG-3813
>                 URL: https://issues.apache.org/jira/browse/PIG-3813
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.12.0
>            Reporter: Suhas Satish
>            Priority: Critical
>         Attachments: test_data.txt
>
>
> When the following script is run, pig goes into an infinite loop. This was 
> reproduced on pig trunk as of March 12, 2014 on apache hadoop 1.2. 
> test_data.txt has been attached. 
> test.pig
> 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 'gpWeekRanked';
> describe gpWeekRanked;
> ---------------------------------------------------
> The res object of class Result, gets its value from leaf.getNextTuple()
> This gets an empty tuple 
> () 
> with STATUS_OK.
> SO the while(true) condition never gets an End of Processing (EOP) and so 
> does not exit. 
>  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to