You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Santhosh Srinivasan (JIRA)" <ji...@apache.org> on 2008/09/04 01:19:44 UTC

[jira] Updated: (PIG-398) Expressions not allowed inside foreach

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

Santhosh Srinivasan updated PIG-398:
------------------------------------

    Attachment: Pig-398.patch

Patch, Pig-398.patch fixes the following:

1. Expression assignment within foreach is now re-instated
2. Visit methods for operators that contain nested plans in LOVisitor are fixed. Previously only the roots of the nested plans were visited.
3. Cast field schemas will no longer be reset during optimization
4. History will now persist across multiple pig interactive sessions - thanks to Raghotham S Murthy from Facebook.

Unit tests that still fail are:

    [junit] Running org.apache.pig.test.TestBuiltin
    [junit] Tests run: 23, Failures: 1, Errors: 2, Time elapsed: 14.363 sec
    [junit] Test org.apache.pig.test.TestBuiltin FAILED

    [junit] Running org.apache.pig.test.TestEvalPipeline
    [junit] Tests run: 10, Failures: 1, Errors: 0, Time elapsed: 163.484 sec
    [junit] Test org.apache.pig.test.TestEvalPipeline FAILED

    [junit] Running org.apache.pig.test.TestMRCompiler
    [junit] Tests run: 16, Failures: 1, Errors: 0, Time elapsed: 0.24 sec
    [junit] Test org.apache.pig.test.TestMRCompiler FAILED

> Expressions not allowed inside foreach
> --------------------------------------
>
>                 Key: PIG-398
>                 URL: https://issues.apache.org/jira/browse/PIG-398
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Olga Natkovich
>            Assignee: Santhosh Srinivasan
>             Fix For: types_branch
>
>         Attachments: Pig-398.patch
>
>
> The following used to work but no longer does:
> A = load 'data';
> B = group A by $0;
> C = foreach B{
>    D = MAX(A.$0)
>    generate D;
> }

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