You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2011/09/06 20:15:09 UTC

[jira] [Commented] (PIG-2223) error accessing column in output schema of udf having project-star input

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

Thejas M Nair commented on PIG-2223:
------------------------------------

Grahame reported another issue with the patch -
{code}
Hi Thejas,

I applied the patch and rebuilt.  The initial bug is gone, but there looks to be another:

describe a;
a: {f1: int,f2: int,f3: int,f4: int,f5: int,f6: int,f7: int,f8: int,f9: int,f10: int}

aa = FOREACH a GENERATE $0, TOTUPLE($2,$3,$4,$5);
aaa = FOREACH aa GENERATE $0, $1.f4 as v; -- OK
aaaa = FOREACH aaa GENERATE v; -- OK

aa = FOREACH a GENERATE $0, TOTUPLE($2..$5);
aaa = FOREACH aa GENERATE $0, $1.f4 as v; -- OK after patch
aaaa = FOREACH aaa GENERATE v; -- ERROR
2011-08-18 11:00:36,246 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1128: Cannot find field f4 in :tuple(f3:int,f4:int,f5:int,f6:int)

Thanks,
Grahame
{code}

> error accessing column in output schema of udf having project-star input
> ------------------------------------------------------------------------
>
>                 Key: PIG-2223
>                 URL: https://issues.apache.org/jira/browse/PIG-2223
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>             Fix For: 0.9.1
>
>         Attachments: PIG-2223.1.patch
>
>
> (from Grahame's email) -
> {code}
> describe a;
> a: {f1: int,f2: int,f3: int,f4: int,f5: int,f6: int,f7: int,f8: int,f9: int,f10: int}
> aa = FOREACH a GENERATE $0, TOTUPLE($2,$3,$4,$5);
> aaa = FOREACH aa GENERATE $0, $1.$0; -- OK
> aaa = FOREACH aa GENERATE $0, $1.f3; -- OK
> aaa = FOREACH aa GENERATE $0, $1.$1; -- OK
> aaa = FOREACH aa GENERATE $0, $1.f4; -- OK
> aa = FOREACH a GENERATE $0, TOTUPLE($2..$5); -- should be the same as above?
> aaa = FOREACH aa GENERATE $0, $1.$0; -- OK
> aaa = FOREACH aa GENERATE $0, $1.f3; -- ERROR
> aaa = FOREACH aa GENERATE $0, $1.$1; -- ERROR
> aaa = FOREACH aa GENERATE $0, $1.f4; -- ERROR
> {code}

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