Avro
  1. Avro
  2. AVRO-895

JsonDecoder does not tolerate JSON records with different field order

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

      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

        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Thiruvalluvan M. G. made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Thiruvalluvan M. G. made changes -
        Attachment AVRO-895-rev-2.patch [ 12497191 ]
        Thiruvalluvan M. G. made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Affects Version/s 1.5.4 [ 12317878 ]
        Labels patch
        Fix Version/s 1.6.0 [ 12316198 ]
        Thiruvalluvan M. G. made changes -
        Attachment AVRO-895.patch [ 12497165 ]
        Thiruvalluvan M. G. made changes -
        Assignee Thiruvalluvan M. G. [ thiru_mg ]
        Tom White made changes -
        Field Original Value New Value
        Attachment AVRO-895.patch [ 12496430 ]
        Tom White created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development