Skip to content

Make reader schema optional in AvroDeserializer #1000

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

Merged

Conversation

97nitt
Copy link
Contributor

@97nitt 97nitt commented Nov 29, 2020

This PR was created in response to the following issue:
#834

It makes the reader schema optional in AvroDeserializer. When it is not provided, the writer schema is used for deserialization. Tests were updated to verify the deserializer works both with and without a reader schema.

NOTE: this PR introduces breaking changes in both the AvroSerializer and AvroDeserializer. The order of constructor arguments for AvroDeserializer had to changed to accommodate the now optional schema_str argument. I reordered the constructor arguments for AvroSerializer just for consistency between the two classes.

@ghost
Copy link

ghost commented Nov 29, 2020

@confluentinc It looks like @97nitt just signed our Contributor License Agreement. 👍

Always at your service,

clabot

@edenhill edenhill added the serdes Avro, JSON, Protobof, Schema-registry label Mar 9, 2021
Copy link
Contributor

@mhowlett mhowlett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @97nitt - LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
serdes Avro, JSON, Protobof, Schema-registry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants