[ 
https://issues.apache.org/jira/browse/PIG-1627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910757#action_12910757
 ] 

Alan Gates commented on PIG-1627:
---------------------------------

The problem is in the flatten, not the group.  The group has the proper schema 
(bytearray, bag{}).  Loading a bag of unknown schema and flattening it produces 
the same result.

Flattening a tuple of unknown content has the same problem as well.

> Flattening of bags with unknown schemas produces wrong schema
> -------------------------------------------------------------
>
>                 Key: PIG-1627
>                 URL: https://issues.apache.org/jira/browse/PIG-1627
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.7.0
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>             Fix For: 0.9.0
>
>
> The following should produce an unknown schema:
> {code}
> A = load '/Users/gates/test/data/studenttab10';
> B = group A by $0;
> C = foreach B generate flatten(A);
> describe C;
> {code}
> Instead it gives
> {code}
> C: {bytearray}
> {code}

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

Reply via email to