script1-hadoop.pig in pig tutorial hangs when run in local mode
---------------------------------------------------------------

                 Key: PIG-800
                 URL: https://issues.apache.org/jira/browse/PIG-800
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.2.0
            Reporter: Alan Gates
            Assignee: Alan Gates


Any script of the form

{code}
B = foreach A generate flatten(X); -- X is a bag
C = distinct B;
{code}

where X is sometimes an empty bag will hang in local mode.  If distinct is 
replaced by order by it will also hang.

The issue is that the flatten in foreach returns STATUS_NULL whenever the bag X 
is empty.  PODistinct and POSort handle this incorrectly and go into an 
infinite loop.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to