You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Shravan Matthur Narayanamurthy (JIRA)" <ji...@apache.org> on 2008/08/14 09:09:44 UTC
[jira] Commented: (PIG-307) flatten logic assumes that anything to
be flattened is a bag, when it could be a tuple.
[ https://issues.apache.org/jira/browse/PIG-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622455#action_12622455 ]
Shravan Matthur Narayanamurthy commented on PIG-307:
----------------------------------------------------
Alan, I saw that the script is working to produce the same results as trunk. Could you please give me some other script pointing out the error?
> flatten logic assumes that anything to be flattened is a bag, when it could be a tuple.
> ---------------------------------------------------------------------------------------
>
> Key: PIG-307
> URL: https://issues.apache.org/jira/browse/PIG-307
> Project: Pig
> Issue Type: Bug
> Components: impl
> Affects Versions: types_branch
> Reporter: Alan Gates
> Assignee: Shravan Matthur Narayanamurthy
> Priority: Critical
> Fix For: types_branch
>
>
> Queries such as:
> {code}
> a = load 'myfile' using PigStorage() as (name, age, gpa);
> b = filter a by name lt 'b';
> c = foreach b generate TOKENIZE(name);
> d = foreach c generate flatten($0);
> store d into 'outfile';
> {code}
> fail because the flatten statement in d = foreach ... assumes $0 is a bag.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.