You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/08/19 17:48:00 UTC
[jira] [Commented] (AVRO-2465) Fix a wrong description in the
avro-tools random's usage
[ https://issues.apache.org/jira/browse/AVRO-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16910612#comment-16910612 ]
ASF subversion and git services commented on AVRO-2465:
-------------------------------------------------------
Commit e305f0625be79753dd34d20a5bfbecf9f01e5b41 in avro's branch refs/heads/master from Kengo Seki
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=e305f06 ]
AVRO-2465: Fix wrong defalut values in the avro-tools' usage
> Fix a wrong description in the avro-tools random's usage
> --------------------------------------------------------
>
> Key: AVRO-2465
> URL: https://issues.apache.org/jira/browse/AVRO-2465
> Project: Apache Avro
> Issue Type: Bug
> Components: java, tools
> Reporter: Kengo Seki
> Assignee: Kengo Seki
> Priority: Minor
>
> {{avro-tools random}}'s usage says the default compression codec is null:
> {code}
> $ 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)
> {code}
> But actually the deflate codec is used.
> {code}
> $ 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
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)