jackson-dataformats-binary icon indicating copy to clipboard operation
jackson-dataformats-binary copied to clipboard

(avro) Compatibility issue because Schema validation error

Open Shaswatparikh opened this issue 3 years ago • 2 comments

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.

Shaswatparikh avatar Apr 05 '21 16:04 Shaswatparikh

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?

cowtowncoder avatar Apr 05 '21 17:04 cowtowncoder

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

kumprj avatar Oct 11 '23 15:10 kumprj