avro-kotlin / avro4k

Avro format support for Kotlin
Apache License 2.0
198 stars 37 forks source link

If an optional field is missing from a previoius schema, do not blow up. #106

Closed RyanAtWare2Go closed 3 years ago

RyanAtWare2Go commented 3 years ago

Avro introduced a change here https://issues.apache.org/jira/browse/AVRO-2278 that changes the way get works. This breaks backwards compattible schema evolution. Previously if you tried to get an optional field that did not exist on the schema, you just got null. Now it throws an exception

sksamuel commented 3 years ago

lgtm

@thake ?

thake commented 3 years ago

@RyanAtWare2Go Thanks for the great patch and sorry to let you wait!