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

GenericRecord.toString can produce invalid JSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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"}

        Attachments

        1. avro-1201.patch
          2 kB
          Sharmarke Aden
        2. avro-1201.patch
          0.7 kB
          Sharmarke Aden
        3. Avro-1201-TestCase.tar.gz
          2 kB
          Sharmarke Aden
        4. vcs-diff4833874908267370412.patch
          17 kB
          Sharmarke Aden

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: