[
https://issues.apache.org/jira/browse/PIG-4405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14653973#comment-14653973
]
Daniel Dai commented on PIG-4405:
---------------------------------
Bag has the same issue. Take a sample from existing code:
{code}
data.set("foo", "myBag:bag{t:(l:chararray)}", tuple(bag(tuple("a", "b"),
tuple("c", "d"), tuple("e", "f"))));
{code}
Agree approach 1 is clear, but bag takes approach 2, we shall do it
consistently, right?
> Adding 'map[]' support to mock/Storage
> --------------------------------------
>
> Key: PIG-4405
> URL: https://issues.apache.org/jira/browse/PIG-4405
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.14.0
> Reporter: Niels Basjes
> Assignee: Niels Basjes
> Fix For: 0.16.0
>
> Attachments: PIG-4405-20150723.patch
>
>
> The mock/Storage contains convenience methods for creating a bag and a tuple
> when doing unit tests. Pig has however 3 complex data types ( see
> http://pig.apache.org/docs/r0.14.0/basic.html#Simple+and+Complex ) and the
> third one (the map) is not yet present in such a convenience method.
> Feature request: Add such a method to facilitate testing map[] output better.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)