You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Dmitriy V. Ryaboy (JIRA)" <ji...@apache.org> on 2012/09/22 19:56:08 UTC

[jira] [Resolved] (PIG-2536) Extend pig to support DISTINCT x.(project)

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

Dmitriy V. Ryaboy resolved PIG-2536.
------------------------------------

    Resolution: Won't Fix

Ok I am convinced by Julien's argument for consistency; don't think the cost/benefit is there to work on this right now, though. Let's leave this as-is; the ticket and patch are here if someone wants to come back later and finish the job.
                
> Extend pig to support DISTINCT x.(project)
> ------------------------------------------
>
>                 Key: PIG-2536
>                 URL: https://issues.apache.org/jira/browse/PIG-2536
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Jonathan Coveney
>            Assignee: Jonathan Coveney
>            Priority: Minor
>             Fix For: 0.11
>
>         Attachments: PIG-2436-0.patch
>
>
> Currently, pig does not allow this syntax:
> {code}
> A = load 'thing' (x:int, y:int, z:int);
> B = distinct A.x;
> C = distinct A.(y,z)
> D = distinct C.$0;
> {code}
> and so on. With this patch, it does. I should probably add more tests, though it's a simple patch... it just turns distinct rel.proj into syntactic sugar for distinct (foreach rel generate proj)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira