You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Cheolsoo Park (JIRA)" <ji...@apache.org> on 2014/03/28 17:22:15 UTC

[jira] [Comment Edited] (PIG-3833) Relation loaded by AvroStorage with schema is projected incorrectly in foreach statement.

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

Cheolsoo Park edited comment on PIG-3833 at 3/28/14 4:20 PM:
-------------------------------------------------------------

[~jeongjinku], I can do that. PIG-3015 was released in 0.12, so there is no more branches that need the fix.

I'll commit this in 0.12 tomorrow.



was (Author: cheolsoo):
[~jeongjinku], I can do that. PIG-3515 was released in 0.12, so there is no more branches that need the fix.

I'll commit this in 0.12 tomorrow.


> Relation loaded by AvroStorage with schema is projected incorrectly in foreach statement.
> -----------------------------------------------------------------------------------------
>
>                 Key: PIG-3833
>                 URL: https://issues.apache.org/jira/browse/PIG-3833
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.12.1
>            Reporter: Jeongjin Ku
>            Assignee: Jeongjin Ku
>             Fix For: 0.12.1, 0.13.0
>
>         Attachments: PIG-3833-2.patch, PIG-3833.patch
>
>
> This example has a correct behavior. 
> in = LOAD '$INFILE' USING AvroStorage('','-f schema.avsc');
> out = FOREACH in GENERATE *;
> But if we try to pick and project specific fields like the following example,
> in = LOAD '$INFILE' USING AvroStorage('','-f schema.avsc');
> out = FOREACH in GENERATE $0,$1,$7;
> Actual result is "$0, $1, $2" not "$0,$1,$7"
> This bug is always reproducible.



--
This message was sent by Atlassian JIRA
(v6.2#6252)