You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2008/08/15 00:03:44 UTC

[jira] Created: (PIG-378) FOREACH followed by LIMIT produces wrong results

FOREACH followed by LIMIT produces wrong results
------------------------------------------------

                 Key: PIG-378
                 URL: https://issues.apache.org/jira/browse/PIG-378
             Project: Pig
          Issue Type: Bug
    Affects Versions: types_branch
            Reporter: Olga Natkovich
            Priority: Critical
             Fix For: types_branch


Script:

grunt> A = load '/user/pig/tests/data/singlefile/studenttab10k' as (name, age, gpa);
grunt> B = foreach A generate name;
grunt> C = limit B 10;
grunt> dump C;

Output:

((luke king,65,0.73))
((fred miller,55,3.77))
((holly white,43,0.24))
((calvin brown,56,0.72))
((katie carson,25,3.65))
((holly davidson,57,2.43))
((holly davidson,59,1.26))
((luke steinbeck,51,1.14))
((nick underhill,31,2.46))
((ulysses thompson,64,1.90))

Note that we have a tuple with 3 fields within tuple

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


[jira] Assigned: (PIG-378) FOREACH followed by LIMIT produces wrong results

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich reassigned PIG-378:
----------------------------------

    Assignee: Daniel Dai

> FOREACH followed by LIMIT produces wrong results
> ------------------------------------------------
>
>                 Key: PIG-378
>                 URL: https://issues.apache.org/jira/browse/PIG-378
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Olga Natkovich
>            Assignee: Daniel Dai
>            Priority: Critical
>             Fix For: types_branch
>
>
> Script:
> grunt> A = load '/user/pig/tests/data/singlefile/studenttab10k' as (name, age, gpa);
> grunt> B = foreach A generate name;
> grunt> C = limit B 10;
> grunt> dump C;
> Output:
> ((luke king,65,0.73))
> ((fred miller,55,3.77))
> ((holly white,43,0.24))
> ((calvin brown,56,0.72))
> ((katie carson,25,3.65))
> ((holly davidson,57,2.43))
> ((holly davidson,59,1.26))
> ((luke steinbeck,51,1.14))
> ((nick underhill,31,2.46))
> ((ulysses thompson,64,1.90))
> Note that we have a tuple with 3 fields within tuple

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


[jira] Updated: (PIG-378) FOREACH followed by LIMIT produces wrong results

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-378:
-------------------------------

    Status: Patch Available  (was: Open)

> FOREACH followed by LIMIT produces wrong results
> ------------------------------------------------
>
>                 Key: PIG-378
>                 URL: https://issues.apache.org/jira/browse/PIG-378
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Olga Natkovich
>            Assignee: Daniel Dai
>            Priority: Critical
>             Fix For: types_branch
>
>         Attachments: PIG-387.patch
>
>
> Script:
> grunt> A = load '/user/pig/tests/data/singlefile/studenttab10k' as (name, age, gpa);
> grunt> B = foreach A generate name;
> grunt> C = limit B 10;
> grunt> dump C;
> Output:
> ((luke king,65,0.73))
> ((fred miller,55,3.77))
> ((holly white,43,0.24))
> ((calvin brown,56,0.72))
> ((katie carson,25,3.65))
> ((holly davidson,57,2.43))
> ((holly davidson,59,1.26))
> ((luke steinbeck,51,1.14))
> ((nick underhill,31,2.46))
> ((ulysses thompson,64,1.90))
> Note that we have a tuple with 3 fields within tuple

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


[jira] Updated: (PIG-378) FOREACH followed by LIMIT produces wrong results

Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Dai updated PIG-378:
---------------------------

    Attachment: PIG-387.patch

> FOREACH followed by LIMIT produces wrong results
> ------------------------------------------------
>
>                 Key: PIG-378
>                 URL: https://issues.apache.org/jira/browse/PIG-378
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Olga Natkovich
>            Assignee: Daniel Dai
>            Priority: Critical
>             Fix For: types_branch
>
>         Attachments: PIG-387.patch
>
>
> Script:
> grunt> A = load '/user/pig/tests/data/singlefile/studenttab10k' as (name, age, gpa);
> grunt> B = foreach A generate name;
> grunt> C = limit B 10;
> grunt> dump C;
> Output:
> ((luke king,65,0.73))
> ((fred miller,55,3.77))
> ((holly white,43,0.24))
> ((calvin brown,56,0.72))
> ((katie carson,25,3.65))
> ((holly davidson,57,2.43))
> ((holly davidson,59,1.26))
> ((luke steinbeck,51,1.14))
> ((nick underhill,31,2.46))
> ((ulysses thompson,64,1.90))
> Note that we have a tuple with 3 fields within tuple

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


[jira] Updated: (PIG-378) FOREACH followed by LIMIT produces wrong results

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-378:
-------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> FOREACH followed by LIMIT produces wrong results
> ------------------------------------------------
>
>                 Key: PIG-378
>                 URL: https://issues.apache.org/jira/browse/PIG-378
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Olga Natkovich
>            Assignee: Daniel Dai
>            Priority: Critical
>             Fix For: types_branch
>
>         Attachments: PIG-387.patch
>
>
> Script:
> grunt> A = load '/user/pig/tests/data/singlefile/studenttab10k' as (name, age, gpa);
> grunt> B = foreach A generate name;
> grunt> C = limit B 10;
> grunt> dump C;
> Output:
> ((luke king,65,0.73))
> ((fred miller,55,3.77))
> ((holly white,43,0.24))
> ((calvin brown,56,0.72))
> ((katie carson,25,3.65))
> ((holly davidson,57,2.43))
> ((holly davidson,59,1.26))
> ((luke steinbeck,51,1.14))
> ((nick underhill,31,2.46))
> ((ulysses thompson,64,1.90))
> Note that we have a tuple with 3 fields within tuple

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