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

ASF subversion and git services commented on AVRO-1858:
-------------------------------------------------------

Commit ee5008d9ed66f3237cf1304484b1d1e6836c8a33 in avro's branch 
refs/heads/master from MikeHurleySurescripts
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=ee5008d ]

AVRO-1858 add tojson head mode (#100)

* AVRO-1858: added --head option to the tojson operation

* AVRO-1858: added unit tests for tojson --head option

* AVRO-1858: head input and record counters are now longs

* AVRO-1858: added tojson --head tests for zero and negative values. Negative 
head count is now an error.


> Update DataFileReadTool (tojson) to support a "head" concept
> ------------------------------------------------------------
>
>                 Key: AVRO-1858
>                 URL: https://issues.apache.org/jira/browse/AVRO-1858
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.8.1
>            Reporter: Mike Hurley
>            Assignee: Mike Hurley
>            Priority: Major
>
> It would be nice if the tojson operator supported a "head" concept in order 
> to get a sampling of records in an Avro file.
> Allow specifying a maximum record count to display. If no max is given in 
> head mode, use a reasonable default (like 10).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to