[ https://issues.apache.org/jira/browse/PIG-3252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Wagner updated PIG-3252: ----------------------------- Attachment: PIG-3252.1.patch This was introduced with the added support for recursive schemas in [PIG-2875]. I've attached a patch to fix. > 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 > Attachments: PIG-3252.1.patch > > > 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