Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.7.4
-
None
-
None
-
Schema class - org.apache.avro:avro:1.7.4
Also confirmed in Avro 1.7.5 (RC)
Description
The following schema compiles successfully in Avro(c#), but in Avro(Java)returns a "Type not supported: Invoice" when parsing the "ListOfInvoices" array.
Problem appears to be in the parse method. {"items": "Invoice"} does not properly parse to find the "Invoice" type.
{ "namespace": "SampleClasses",
"name": "Batch",
"type": "record",
"fields": [
{ "name": "Invoices", "type": {
"type": "array",
"items": {
"name": "Invoice",
"type": "record",
"fields": [
]
}
}
},
, // This reference to "Invoice" works fine.
{ "name": "ListOfInvoices", "type": {
"type": "array", "items":
// Fails - does not get previous definition of "Invoice"
}
}
]
}