Avro
  1. Avro
  2. AVRO-1275

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.8.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).

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:

                Development