pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohit Sabharwal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-4438) Limit after sort does not work in spark mode
Date Tue, 31 Mar 2015 04:01:53 GMT

    [ https://issues.apache.org/jira/browse/PIG-4438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14387926#comment-14387926
] 

Mohit Sabharwal commented on PIG-4438:
--------------------------------------

+1 (non-binding)

> Limit after sort does not work in spark mode
> --------------------------------------------
>
>                 Key: PIG-4438
>                 URL: https://issues.apache.org/jira/browse/PIG-4438
>             Project: Pig
>          Issue Type: Sub-task
>          Components: spark
>            Reporter: liyunzhang_intel
>            Assignee: liyunzhang_intel
>             Fix For: spark-branch
>
>         Attachments: PIG-4438_1.patch, PIG-4438_2.patch
>
>
> when pig script executes "order" before "limit" in spark mode, the results will be wrong.
> cat testlimit.txt
> 1	orange
> 3	coconut
> 5	grape
> 6	pear
> 2	apple
> 4	mango
> testlimit.pig:
> a = load './testlimit.txt' as (x:int, y:chararray);
> b = order a by x;
> c = limit b 1;
> store c into './testlimit.out';
> the result:
> 1	orange
> 2	apple
> 3	coconut
> 4	mango
> 5	grape
> 6	pear
> the correct result should be:
> 1	orange



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message