[ 
https://issues.apache.org/jira/browse/AVRO-1977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15799779#comment-15799779
 ] 

ASF GitHub Bot commented on AVRO-1977:
--------------------------------------

GitHub user ddukek opened a pull request:

    https://github.com/apache/avro/pull/186

    AVRO-1977: Allow Imported Types As Items In Arrays

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ddukek/avro allow_imported_types_in_arrays

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/avro/pull/186.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #186
    
----
commit 4bd919ba79451acb39e1eed15d649bbbe7f6b92a
Author: Dillon Dukek <[email protected]>
Date:   2017-01-05T00:07:20Z

    AVRO-1977: Allow Imported Types As Items In Array

----


> 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)

Reply via email to