Support for multiple event types when using GenericRecord
This commit is contained in:
committed by
Oleg Zhurakousky
parent
b1d148f966
commit
eb33d7a19b
@@ -135,6 +135,11 @@ public class AvroSchemaServiceManagerImpl implements AvroSchemaServiceManager {
|
||||
reader = new GenericDatumReader<>(schema);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (writerSchema != null) {
|
||||
reader = new GenericDatumReader(writerSchema);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
reader = new ReflectDatumReader(type);
|
||||
|
||||
Reference in New Issue
Block a user