Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-9569

Confusing construction of AvroSerializers for generic records

    XMLWordPrintableJSON

Details

    Description

      The AvroSerializer currently has a AvroSerializer(Class<T> type, Schema schema) public constructor when used for generic records.

      This is a bit confusing, because when using the AvroSerializer, the type to be serialized should always be a GenericData.Record type.

      We should either:

      • have a separate subclass of AvroSerializer, say GenericRecordAvroSerializer that is a AvroSerializer<GenericRecord>, or
      • follow a similar approach to the instantiation methods in the AvroDeserialiationSchema

      Attachments

        Activity

          People

            tzulitai Tzu-Li (Gordon) Tai
            tzulitai Tzu-Li (Gordon) Tai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: