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

Doug Cutting commented on AVRO-1367:
------------------------------------

I think this is working as intended.  Files need to be specified in dependency 
order on the command line.  Directory order is not reliable, so inter-dependent 
dependencies would either require multiple import directories or pre-expanding 
the interdependencies (e.g., with Maven).
                
> Compiling multiple schemas in a directory fails if dependencies are not in 
> alphabetical order
> ---------------------------------------------------------------------------------------------
>
>                 Key: AVRO-1367
>                 URL: https://issues.apache.org/jira/browse/AVRO-1367
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.6
>            Reporter: Duane Moore
>         Attachments: avro-multiple-schema-directory-failure.diff
>
>
> When compiling a schema with multiple input files, no dependencies can be 
> found unless they are located in a file name that precedes the current file 
> being parsed alphabetically.  I added two sample test cases to illustrate 
> this using the existing player.avsc and position.avsc in the test folder.  
> Simply calling the doCompile using the input directory versus specifying the 
> files manually, or specifying the input files by name, but in alphabetical 
> order, results in an error:
> org.apache.avro.SchemaParseException: Undefined name: "Position"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to