Avro
  1. Avro
  2. AVRO-390

ResolvingDecoder does not handle default values for records well

    Details

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

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

        Activity

        Hide
        Doug Cutting added a comment -

        +1 Looks good. Thanks!

        Show
        Doug Cutting added a comment - +1 Looks good. Thanks!
        Hide
        Thiruvalluvan M. G. added a comment -

        Committed revision 905520.

        Show
        Thiruvalluvan M. G. added a comment - Committed revision 905520.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development