Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-3252

AvroStorage gives wrong schema for schemas with named records

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11
    • 0.12.0, 0.11.1
    • piggybank
    • None

    Description

      Given the Avro schema:

      {"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"}]}
      

      we should get back the Pig schema

       {a: (key: int,value: string),b:(key: int,value: string)} 

      but instead it is

       {a: (key: int,value: string),b: bytearray} 

      Attachments

        1. PIG-3252.1.patch
          0.7 kB
          Mark Wagner

        Activity

          People

            mwagner Mark Wagner
            mwagner Mark Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: