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/03/13 17:29:38 UTC

[jira] [Commented] (PIG-4459) VALUESET/VALUELIST wraps an element in a tuple even if that element is a tuple

    [ 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)