Avro
  1. Avro
  2. AVRO-713

GenericRecord.toString can produce invalid JSON

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: 1.5.0
    • Component/s: java
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The GenericData.toString method can produce invalid JSON. The problem is that enums are printed without quotes, as in

      {"emum_field":a}

      instead of

      {"enum_field":"a"}

        Issue Links

          Activity

          Sharmarke Aden made changes -
          Link This issue is cloned as AVRO-1201 [ AVRO-1201 ]
          Doug Cutting made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Doug Cutting made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Assignee Jay Kreps [ jkreps ]
          Fix Version/s 1.5.0 [ 12315282 ]
          Resolution Fixed [ 1 ]
          Jay Kreps made changes -
          Field Original Value New Value
          Attachment avro-tostring-json-fix.diff [ 12466391 ]
          Jay Kreps created issue -

            People

            • Assignee:
              Jay Kreps
              Reporter:
              Jay Kreps
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development