Avro
  1. Avro
  2. AVRO-1201

GenericRecord.toString can produce invalid JSON

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2
    • Fix Version/s: 1.7.3
    • 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"}
      1. Avro-1201-TestCase.tar.gz
        2 kB
        Sharmarke Aden
      2. avro-1201.patch
        0.7 kB
        Sharmarke Aden
      3. avro-1201.patch
        2 kB
        Sharmarke Aden
      4. vcs-diff4833874908267370412.patch
        17 kB
        Sharmarke Aden

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Sharmarke Aden
              Reporter:
              Sharmarke Aden
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development