Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2080

AvroRecord refuses Union[null, RecordSchema]

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • Small

    Description

      Apache avro record constructor ensure that its parameter is a Record Schema, and so refuse Union[null, RecordSchema].

      On TCK, when we build AvroRecord from Entry, we use the entry schema to build the record. As the entry can be nullable; the entry type is an union[null, Record].

      Then, this code failed.

      this.delegate = new GenericData.Record(this.schema.getActualDelegate());
      

      to fix, we we to check the type of schema => actual delegate, and extract record schema in case of union.

      Attachments

        Activity

          People

            emmanuel_g emmanuel gallois
            clesaec Christophe LeSaec
            Christophe LeSaec
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: