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

ASF GitHub Bot commented on AVRO-1583:
--------------------------------------

GitHub user bennies opened a pull request:

    https://github.com/apache/avro/pull/65

    stdin support for getschema

    It would be nice to support reading from stdin on getschema calls so you 
don't need a local file first.
    Somewhat similar to AVRO-1583. Not sure if it's preferred to create a jira 
for this?

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bennies/avro trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/avro/pull/65.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 #65
    
----
commit 60bc6cc91bcdde63eb2c21436bd456592e3cc838
Author: Bennie Schut <bennie.sc...@booking.com>
Date:   2015-12-14T12:47:18Z

    stdin support for getschema

----


> Add stdin support to tojson
> ---------------------------
>
>                 Key: AVRO-1583
>                 URL: https://issues.apache.org/jira/browse/AVRO-1583
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.7.7
>            Reporter: Clément MAHTIEU
>            Assignee: Clément MAHTIEU
>             Fix For: 1.8.0
>
>         Attachments: AVRO-1583.patch
>
>
> Unlike most of the avro tools tojson does not currently support reading from 
> stdin. Adding this support would be quite conveniant. For example a pipe of 
> concat and tojson is much easier to use that having to write a shell script 
> to create a local file.
> Source code said that stdin is not supported because we need a seekable 
> stream, however I believe this comment is outdated since it just works and 
> other tools have no issue dealing with stdin.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to