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/15 04:19:05 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13020166#comment-13020166 ] 

Daniel Dai commented on PIG-1910:
---------------------------------

PIG-1910-1.patch fix the test case in description.

For the other test case in comments, I get:
Invalid field projection. Projected field [b] does not exist in schema:.

Which seems fine. We have no way to translate g into logical plan since we don't know how to translate b into right position.

> 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
>
>
> {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