Grokbase Groups Pig dev August 2008
FAQ
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.

Search Discussions

  • Olga Natkovich (JIRA) at Aug 14, 2008 at 10:04 pm
    [ 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.
  • Daniel Dai (JIRA) at Aug 14, 2008 at 10:28 pm
    [ 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.
  • Olga Natkovich (JIRA) at Aug 14, 2008 at 10:44 pm
    [ 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.
  • Olga Natkovich (JIRA) at Aug 15, 2008 at 12:16 am
    [ 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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedAug 14, '08 at 10:04p
activeAug 15, '08 at 12:16a
posts5
users1
websitepig.apache.org

1 user in discussion

Olga Natkovich (JIRA): 5 posts

People

Translate

site design / logo © 2022 Grokbase