[
https://issues.apache.org/jira/browse/PIG-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15870021#comment-15870021
]
Adam Szita commented on PIG-5085:
---------------------------------
Attached [^PIG-5085.0.patch] with the feature, basically breaks down maps into
multiple tuples:
Example:
{code}
------------------------------------------------------
| A | id:chararray | m:map(:chararray) |
------------------------------------------------------
| | 3 | {color=green, name=kiwi} |
------------------------------------------------------
-------------------------------------------------------------------------
| B | id:chararray | m::key:chararray | m::value:chararray |
-------------------------------------------------------------------------
| | 3 | color | green |
| | 3 | name | kiwi |
-------------------------------------------------------------------------
{code}
I'm still waiting for unit tests and will attach another patch with the doc
changes too.
[~rohini] can you please take a look to see if you agree with my approach?
> Support FLATTEN of maps
> -----------------------
>
> Key: PIG-5085
> URL: https://issues.apache.org/jira/browse/PIG-5085
> Project: Pig
> Issue Type: New Feature
> Reporter: Rohini Palaniswamy
> Assignee: Adam Szita
> Attachments: PIG-5085.0.patch
>
>
> I have come across users asking for this quite a few times. Don't see why
> we should not support it with FLATTEN instead of users having to write a UDF
> for that
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)