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 2011/04/22 19:34:05 UTC

[jira] [Resolved] (PIG-1910) incorrect schema shown when project-star is used with other projections

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

Daniel Dai resolved PIG-1910.
-----------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]

Patch committed to both trunk and 0.9 branch.

> incorrect schema shown when project-star is used with other projections
> -----------------------------------------------------------------------
>
>                 Key: PIG-1910
>                 URL: https://issues.apache.org/jira/browse/PIG-1910
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Daniel Dai
>             Fix For: 0.9.0
>
>         Attachments: PIG-1910-1.patch, PIG-1910-2.patch, PIG-1910-3.patch, PIG-1910-4.patch, PIG-1910-5.patch
>
>
> {code}
> grunt> l = load 'x' ;                                       
> grunt> f = foreach l generate $1 as a, *, $2 as b;          
> grunt> describe f;
> f: {a: bytearray,(null),b: bytearray}  -- The tuple returned by * is automatically flattened, so this schema is not correct. It is more accurate to return a null schema.
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira