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

Support compiling multiple input schemas and protocols

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.3
    • java
    • None
    • Reviewed
    • Schema compiler now accepts multiple input files and/or paths.

    Description

      With AVRO-872, multiple inter-dependent schema files can be parsed. SpecificCompilerTool should be changed to allow the same when producing java from multiple schemas or protocols. Proposed syntax change is to allow multiple files or directories to be passed (space-delimited) before the last token, which is the output path.

      • To compile multiple files where b depends on a:
        $ java -cp avro-tools-x.x.x.jar org.apache.avro.tool.Main \
          compile schema input/a.avsc input/b.avsc output
        
      • To compile files from multiple directories:
        $ java -cp avro-tools-x.x.x.jar org.apache.avro.tool.Main \
          compile schema input1 input2 output
        
      • To compile b which depends on a and all the other content in input that might depend on a or b:
        $ java -cp avro-tools-x.x.x.jar org.apache.avro.tool.Main \
          compile schema input/a.avsc input/b.avsc input output
        

      Attachments

        1. AVRO-877_1.patch
          6 kB
          William W. Graham Jr
        2. AVRO-877_2.patch
          15 kB
          William W. Graham Jr

        Activity

          People

            billgraham William W. Graham Jr
            billgraham William W. Graham Jr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: