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

Fix a wrong description in the avro-tools random's usage

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.1
    • Component/s: java, tools
    • Labels:
      None

      Description

      avro-tools random's usage says the default compression codec is null:

      $ java -jar lang/java/tools/target/avro-tools-1.10.0-SNAPSHOT.jar random
      Usage: outFile (filename or '-' for stdout)
      Option                  Description                                       
      ------                  -----------                                       
      --codec <String>        Compression codec (default: null)                 
      

      But actually the deflate codec is used.

      $ java -jar lang/java/tools/target/avro-tools-1.10.0-SNAPSHOT.jar random --count 0 --schema-file share/test/schemas/weather.avsc /tmp/outFile.avro
      $ java -jar lang/java/tools/target/avro-tools-1.10.0-SNAPSHOT.jar getmeta /tmp/outFile.avro 
      avro.schema	{"type":"record","name":"Weather","namespace":"test","doc":"A weather reading.","fields":[{"name":"station","type":"string","order":"ignore"},{"name":"time","type":"long"},{"name":"temp","type":"int"}]}
      avro.codec	deflate
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sekikn Kengo Seki
                Reporter:
                sekikn Kengo Seki
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: