Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1583

Add stdin support to tojson

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.7
    • 1.8.0
    • java
    • None

    Description

      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.

      Attachments

        1. AVRO-1583.patch
          4 kB
          Clément MATHIEU

        Activity

          People

            clement@unportant.info Clément MATHIEU
            clement@unportant.info Clément MATHIEU
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: