Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(avro) Compatibility issue because Schema validation error #274

Open
Shaswatparikh opened this issue Apr 5, 2021 · 2 comments
Open

(avro) Compatibility issue because Schema validation error #274

Shaswatparikh opened this issue Apr 5, 2021 · 2 comments
Labels

Comments

@Shaswatparikh
Copy link

Shaswatparikh commented Apr 5, 2021

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 cowtowncoder changed the title Compatibility issue because Schema validation error (avro) Compatibility issue because Schema validation error Apr 5, 2021
@cowtowncoder
Copy link
Member

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
Copy link

kumprj commented Oct 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants