Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4DA711003D for ; Wed, 28 Aug 2013 06:56:06 +0000 (UTC) Received: (qmail 32222 invoked by uid 500); 28 Aug 2013 06:56:05 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 31891 invoked by uid 500); 28 Aug 2013 06:55:56 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 31809 invoked by uid 99); 28 Aug 2013 06:55:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Aug 2013 06:55:52 +0000 Date: Wed, 28 Aug 2013 06:55:52 +0000 (UTC) From: "Duane Moore (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-1367) Compiling multiple schemas in a directory fails if dependencies are not in alphabetical order MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13752169#comment-13752169 ] Duane Moore commented on AVRO-1367: ----------------------------------- It would be nice if dependency order was not an issue, like when using a typical compiler like javac. Are there any major issues in the current Schema.Parser that would prevent that? Considering submitting a code patch. > 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