[ 
https://issues.apache.org/jira/browse/AVRO-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17162983#comment-17162983
 ] 

Tom commented on AVRO-2900:
---------------------------

I was mistaken, this is already possible:
{code:java}
avro-tools tojson --head=<n> <filename> {code}
 

> Allow limiting the number of results parsed by Avro tools's tojson
> ------------------------------------------------------------------
>
>                 Key: AVRO-2900
>                 URL: https://issues.apache.org/jira/browse/AVRO-2900
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: tools
>            Reporter: Tom
>            Priority: Minor
>
> Avro tools currently does not allow the user to specify a maximum number of 
> entries to parse. A workaround is to use {{head}} and ctrl-c, but that is not 
> too nice.
> Judging by the 
> [source|https://github.com/apache/avro/blob/master/lang/java/tools/src/main/java/org/apache/avro/tool/BinaryFragmentToJsonTool.java]
>  it seems not too hard to add this functionality. 
> I can give it a go, but according to the contribution guidelines, I'll should 
> here first.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to