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

Oscar Westra van Holthe - Kind resolved AVRO-1977.
--------------------------------------------------
    Resolution: Fixed

This functionality looks like it has already been implemented.

> Arrays of Imported Types in Schema Definition
> ---------------------------------------------
>
>                 Key: AVRO-1977
>                 URL: https://issues.apache.org/jira/browse/AVRO-1977
>             Project: Apache 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
(v8.20.10#820010)

Reply via email to