[
https://issues.apache.org/jira/browse/PIG-1627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017657#comment-13017657
]
Daniel Dai commented on PIG-1627:
---------------------------------
We use bytearray for a field with unknown type. In the case we don't even know
the number of fields, we use null schema (unknown schema). Yes, some clearance
in the document is needed.
> 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: Daniel Dai
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira