{
  "name" : "recordsOfArraysOfRecords",
  "namespace" : "org.apache.pig.test.builtin",
  "type" : "record",
  "fields" : [
    {"name" : "key", "type" : "string"},
    {"name" : "values",
     "type" : {
       "type" : "array",
       "items" : {
         "name" : "innerRecord",
         "type" : "record",
         "fields" : [
            {"name" : "k", "type" : "string"},
            {"name" : "v", "type" : "int"}
         ]
       }
     }    
    }
  ]
}