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

Add stdin support to tojson

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.7
    • Fix Version/s: 1.8.0
    • Component/s: java
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: