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

2013-03-19 Thread Cheolsoo Park (JIRA)

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

Cheolsoo Park updated PIG-3252:
---

Resolution: Fixed
Status: Resolved  (was: Patch Available)

Committed to trunk and 0.11.

 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
 Fix For: 0.12, 0.11.1

 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


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

2013-03-18 Thread Mark Wagner (JIRA)

 [ 
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


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

2013-03-18 Thread Mark Wagner (JIRA)

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

Mark Wagner updated PIG-3252:
-

Fix Version/s: 0.11.1
   0.12
   Status: Patch Available  (was: Open)

 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
 Fix For: 0.12, 0.11.1

 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