Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1367

Compiling multiple schemas in a directory fails if dependencies are not in alphabetical order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.6
    • None
    • java
    • None

    Description

      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"

      Attachments

        Activity

          People

            Unassigned Unassigned
            duane.moore@ieee.org Duane Moore
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: