FasterXML / jackson-dataformats-binary

Uber-project for standard Jackson binary format backends: avro, cbor, ion, protobuf, smile
Apache License 2.0
316 stars 136 forks source link

(avro) Compatibility issue because Schema validation error #274

Open Shaswatparikh opened 3 years ago

Shaswatparikh commented 3 years ago

In avro 1.9.2 -

public Object get(String key) {
            Field field = this.schema.getField(key);
            return field == null ? null : this.values[field.pos()];
        }

getString method was handling null value and returning null to caller, but in 1.10.X version this function throwing exception org.apache.avro.AvroRuntimeException: Not a valid schema field:. This causing issue as code was not sensitive to schema earlier we treat common reader for all different schema but its failing if we upgrade to latest version of Jar. Please take a note.

cowtowncoder commented 3 years ago

It would be good to have actual reproduction of code that fails: above snippet (and brief description) does not unfortunately allow for reproducing the problem or verifying possible fix.

So... what exactly is breaking, and how?

kumprj commented 1 year ago

Were you ever able to solve this? I'm having the exact issue (1.9 to 1.11.3 upgrade with null fields)