You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2015/04/29 03:05:06 UTC

[jira] [Updated] (PIG-3010) Allow UDF's to flatten themselves

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

Daniel Dai updated PIG-3010:
----------------------------
    Fix Version/s:     (was: 0.15.0)
                   0.16.0

> Allow UDF's to flatten themselves
> ---------------------------------
>
>                 Key: PIG-3010
>                 URL: https://issues.apache.org/jira/browse/PIG-3010
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Jonathan Coveney
>            Assignee: Jonathan Coveney
>             Fix For: 0.16.0
>
>         Attachments: PIG-3010-0.patch, PIG-3010-1.patch, PIG-3010-2.patch, PIG-3010-2_nowhitespace.patch, PIG-3010-3.patch, PIG-3010-3_nows.patch, PIG-3010-4.patch, PIG-3010-4_nows.patch, PIG-3010-5.patch, PIG-3010-5_nows.patch
>
>
> This is something I thought would be cool for a while, so I sat down and did it because I think there are some useful debugging tools it'd help with.
> The idea is that if you attach an annotation to a UDF, the Tuple or DataBag you output will be flattened. This is quite powerful. A very common pattern is:
> a = foreach data generate Flatten(MyUdf(thing)) as (a,b,c);
> This would let you just do:
> a = foreach data generate MyUdf(thing);
> With the exact same result!



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