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 2010/12/10 02:41:01 UTC

[jira] Resolved: (PIG-1758) Deep cast of complex type

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

Daniel Dai resolved PIG-1758.
-----------------------------

      Resolution: Fixed
    Release Note: Enable deep cast of a tuple/bag to a tuple/bag of different inner schema
    Hadoop Flags: [Reviewed]

Review notes:
https://reviews.apache.org/r/152/

Patch committed to trunk.

> Deep cast of complex type
> -------------------------
>
>                 Key: PIG-1758
>                 URL: https://issues.apache.org/jira/browse/PIG-1758
>             Project: Pig
>          Issue Type: New Feature
>          Components: impl
>    Affects Versions: 0.8.0
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: 0.9.0
>
>         Attachments: PIG-1758-1.patch, PIG-1758-2.patch
>
>
> Pig does not handle deep cast from bag -> bag, tuple -> tuple. Eg, the following script does not produce desired result:
> {code}
> a = load '1.txt' as (a0:bag{t:tuple(i0:double)});
> b = foreach a generate (bag{tuple(int)})a0;
> dump b;
> {code}
> The result tuple still contain int inside tuple of bag. 
> PIG-613 fix the case we cast bytearray -> bag/tuple, we take complex type including inner types, but bag->bag, tuple->tuple is still not effective.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.