Skip to content

Commit

Permalink
Ensure correct GenericData is used
Browse files Browse the repository at this point in the history
This was missed during a previous refactor
  • Loading branch information
rayokota committed Feb 23, 2024
1 parent b5d8489 commit aed3b7d
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -494,8 +494,10 @@ Object read(AvroSchema writerAvroSchema, AvroSchema readerAvroSchema) {
DatumReader<?> reader;
if (!migrations.isEmpty()) {
// if migration is required, then initially use GenericDatumReader
reader = new GenericDatumReader<>(
writerSchema, writerSchema, AvroSchemaUtils.getGenericData());
reader = new GenericDatumReader<>(writerSchema, writerSchema,
avroUseLogicalTypeConverters
? AvroSchemaUtils.getGenericData()
: GenericData.get());
} else {
reader = getDatumReader(writerSchema, readerSchema);
}
Expand Down

0 comments on commit aed3b7d

Please sign in to comment.