Dillon Dukek created AVRO-1977: ---------------------------------- Summary: Arrays of Imported Types in Schema Definition Key: AVRO-1977 URL: https://issues.apache.org/jira/browse/AVRO-1977 Project: Avro Issue Type: Improvement Components: java Affects Versions: 1.8.1 Reporter: Dillon Dukek Priority: Minor Fix For: 1.8.1
Using the maven-plugin we can specify a list of schemas for import which can then be used as dependencies in subsequent schemas. However, this does not work if we want to use an imported type as the item type of an array field in a record. This currently does not work due to the way that the items node of the array field is passed back to the parse method in Schema.java here https://github.com/apache/avro/blob/master/lang/java/avro/src/main/java/org/apache/avro/Schema.java#L1306. The imported type will only be found if the type within the items node is passed to parse as it is for example here https://github.com/apache/avro/blob/master/lang/java/avro/src/main/java/org/apache/avro/Schema.java#L1306 for the union type. -- This message was sent by Atlassian JIRA (v6.3.4#6332)