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

JsonDecoder does not tolerate JSON records with different field order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.4
    • 1.6.0
    • java

    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-rev-2.patch
          17 kB
          Thiruvalluvan M. G.
        2. AVRO-895.patch
          1 kB
          Thomas White
        3. AVRO-895.patch
          16 kB
          Thiruvalluvan M. G.

        Activity

          People

            thiru_mg Thiruvalluvan M. G.
            tomwhite Thomas White
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: