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

Daniel Dai commented on PIG-4459:
---------------------------------

This should be the right behavior. Otherwise, the result will be the same as 
when the map value is chararray. You can do a flatten to take out the tuple.

> VALUESET/VALUELIST wraps an element in a tuple even if that element is a tuple
> ------------------------------------------------------------------------------
>
>                 Key: PIG-4459
>                 URL: https://issues.apache.org/jira/browse/PIG-4459
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.14.0
>            Reporter: Ratandeep Ratti
>              Labels: UDF, VALUELIST, VALUESET
>         Attachments: valueset_doubly_wraps_tuples_in_map.patch
>
>
> I see that in UDFS VALUELIST/VALUESET we wrap every element in a tuple no 
> matter the type of element, which means that we may  wrap a tuple inside a 
> tuple if the input map contains tuples as values. In our Pig loaders we 
> specifically do not do this, when converting to DataBags we do not wrap 
> elements in tuples which are tuple equivalents. I wondering if this is the 
> intended behavior or is it a bug?



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

Reply via email to