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

ResolvingDecoder does not handle default values for records well

    Details

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

      Description

      Default values for simple fields work fine. But if a field is of type record and that field has default value, the values are inserted fine. But since the client has no knowledge that what is being read is a default value, it tries to get the field order of this record using readFieldOrder(). But the current implementation does not expect such a call. The accompanying test patch catches the problem. The actual patch fixes the problem.

        Attachments

        1. AVRO-390.patch
          0.8 kB
          Thiruvalluvan M. G.
        2. AVRO-390-test.patch
          3 kB
          Thiruvalluvan M. G.

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: