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

AvroSerializationSchema does not work with types generated by avrohugger

    XMLWordPrintableJSON

Details

    Description

      The main problem is that the code in SpecificData.createSchema() tries to reflectively read the SCHEMA$ field, that is normally there in Avro generated classes. However, avrohugger generates this field in a companion object, which the reflective Java code will therefore not find.

      This is also described in these ML threads:

      Attachments

        Issue Links

          Activity

            People

              aljoscha Aljoscha Krettek
              aljoscha Aljoscha Krettek
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: