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

Avro Record Constructor

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • Small

    Description

      AvroRecord constructor build delegate with inner delegate schema.

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

      This delegate can be an union type between null & record (in case of a nullable entry), and lead to avro exception.
      code should use actualDelegate instead (which unwrap union type in case of nullable entry)

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

      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: