Infinite loop with accumulator function in nested foreach
---------------------------------------------------------

                 Key: PIG-1911
                 URL: https://issues.apache.org/jira/browse/PIG-1911
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.8.0
            Reporter: Olga Natkovich
            Assignee: Thejas M Nair
             Fix For: 0.8.0


Sample script:

register v_udf.jar;
a = load '2records' as (f1:chararray,f2:chararray);
b = group a by f1;
d = foreach b { sort = order a by f1; 
  generate org.udfs.MyCOUNT(sort) as something ; }
dump d;

This causes infinite loop if MyCOUNT implements Accumulator interface.

The workaround is to take the function out of nested foreach into a separate 
foreach statement.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to