You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Mark Wagner (JIRA)" <ji...@apache.org> on 2013/03/19 02:45:15 UTC

[jira] [Assigned] (PIG-3252) AvroStorage gives wrong schema for schemas with named records

     [ https://issues.apache.org/jira/browse/PIG-3252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Wagner reassigned PIG-3252:
--------------------------------

    Assignee: Mark Wagner
    
> AvroStorage gives wrong schema for schemas with named records
> -------------------------------------------------------------
>
>                 Key: PIG-3252
>                 URL: https://issues.apache.org/jira/browse/PIG-3252
>             Project: Pig
>          Issue Type: Bug
>          Components: piggybank
>    Affects Versions: 0.11
>            Reporter: Mark Wagner
>            Assignee: Mark Wagner
>
> Given the Avro schema:
> {code}
> {"type":"record",
>  "name":"toplevel",
>  "fields":[{"name":"a","
>             "type":{"type":"record",
>                     "name":"x",
>                     "fields":[{"name":"key","type":"int"},
>                               {"name":"value","type":"string"}]}},
>            {"name":"b","type":"x"}]}
> {code}
> we should get back the Pig schema
> {code} {a: (key: int,value: string),b:(key: int,value: string)} {code}
> but instead it is
> {code} {a: (key: int,value: string),b: bytearray} {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira