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

Alan Gates updated PIG-461:
---------------------------

    Attachment: PIG-461.patch

Fixed MRCompiler and JobControlCompiler so that limit that is added to the end 
to get a single reduce will use the same sort partitioner as the order by above 
it.

> Limit produces results in the wrong order
> -----------------------------------------
>
>                 Key: PIG-461
>                 URL: https://issues.apache.org/jira/browse/PIG-461
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Olga Natkovich
>            Assignee: Alan Gates
>             Fix For: types_branch
>
>         Attachments: PIG-461.patch
>
>
> Script:
> A = load 'studenttab200m' as (name, age, gpa);
> B = filter A by age > 20;
> C = group B by name;
> D = foreach C generate group, COUNT(B) PARALLEL 16;
> E = order D by $0 PARALLEL 16;
> F = limit E 10;
> --explain F;
> dump F;
> Output:
> comes out not sorted on the name

-- 
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