[
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.