[
https://issues.apache.org/jira/browse/AVRO-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15316597#comment-15316597
]
ASF GitHub Bot commented on AVRO-1858:
--------------------------------------
GitHub user MikeHurleySurescripts opened a pull request:
https://github.com/apache/avro/pull/100
AVRO-1858 add tojson head mode
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/MikeHurleySurescripts/avro
AVRO-1858-ToJson-HeadMode
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/avro/pull/100.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #100
----
commit f0c8e8b2bdf68d324e3fcc1d30e255f810707dec
Author: Mike Hurley <[email protected]>
Date: 2016-06-03T20:39:33Z
AVRO-1858: added --head option to the tojson operation
commit fa7dc3aaa260ab6b89095f890ab081aa31beae43
Author: Mike Hurley <[email protected]>
Date: 2016-06-06T14:46:53Z
AVRO-1858: added unit tests for tojson --head option
----
> Update DataFileReadTool (tojson) to support a "head" concept
> ------------------------------------------------------------
>
> Key: AVRO-1858
> URL: https://issues.apache.org/jira/browse/AVRO-1858
> Project: Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.8.1
> Reporter: Mike Hurley
>
> 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
(v6.3.4#6332)