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

JsonDecoder does not tolerate JSON records with different field order

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 1.6.0
    • Component/s: java
    • Labels:

      Description

      Avro records are represented as JSON objects in the JSON encoding (according to the Avro spec http://avro.apache.org/docs/1.5.4/spec.html#schema_record). The JSON spec (http://www.json.org/) states that "A [JSON] object is an unordered set of name/value pairs". However, the Java JsonDecoder fails to read a JSON object as an Avro record if its fields are not in the same order as the schema.

        Attachments

        1. AVRO-895.patch
          1 kB
          Tom White
        2. AVRO-895.patch
          16 kB
          Thiruvalluvan M. G.
        3. AVRO-895-rev-2.patch
          17 kB
          Thiruvalluvan M. G.

          Activity

            People

            • Assignee:
              thiru_mg Thiruvalluvan M. G.
              Reporter:
              tomwhite Tom White
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: