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

The spec does not say how to encode default values for "fixed"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • java
    • None

    Description

      The spec is silent on how to encode default values for "fixed" type in schema. The code in GenericDatumReader suggests that that it should be encoded as a JSON string with Java's platform default charset. A more appropriate way is to encode "fixed" in the same way as binary, that is a string with ISO-8859-1.

      I'll submit a patch for this soon.

      Attachments

        1. AVRO-79.patch
          1 kB
          Thiruvalluvan M. G.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: