Hi, any idea how can I do either: - generate AVRO...
# troubleshooting
a
Hi, any idea how can I do either: • generate AVRO Pojos with avro-maven-plugin that generates instances of org.apache.flink.avro.shaded.org.apache.avro.specific.SpecificRecord • or force the KafkaSink to work with non-shaded avro org.apache.avro.specific.SpecificRecord
The AvroFactory is the troublesome part here, as it doesn't recognize in the create that I'm actually trying to sink specific records to Kafka,
Copy code
static <T> AvroFactory<T> create(Class<T> type, @Nullable Schema currentSchema, @Nullable Schema previousSchema) {
    ClassLoader cl = Thread.currentThread().getContextClassLoader();
    // this returns false because SpecificRecord is the shaded one
    if (SpecificRecord.class.isAssignableFrom(type)) {
        return fromSpecific(type, cl, Optional.ofNullable(previousSchema));
    } else {
        return GenericRecord.class.isAssignableFrom(type) ? fromGeneric(cl, currentSchema) : fromReflective(type, cl, Optional.ofNullable(previousSchema));
    }
}