avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dillon Dukek (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (AVRO-1977) Arrays of Imported Types in Schema Definition
Date Thu, 05 Jan 2017 00:10:58 GMT

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

Dillon Dukek updated AVRO-1977:
    Comment: was deleted

(was: Pull request for change can be found here https://github.com/apache/avro/pull/186)

> 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

View raw message