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

GenericData's toString() method generates the wrong JSON encoding for the bytes type

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.9.0
    • Component/s: java
    • Labels:
      None

      Description

      We discovered in AVRO-1274 that for bytes GenericData.toString(Object datum) incorrectly generates

      { "bytes" : "A" }
      

      rather than just "A" for the JSON encoding defined in the spec (http://avro.apache.org/docs/current/spec.html#json_encoding).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tomwhite Tom White
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: