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

Reflection serde #1281

Merged
merged 6 commits into from Jan 13, 2020
Merged

Conversation

piotrsmolinski
Copy link
Member

The patch adds dynamic resolution of the Avro schema when Reflection API is used.

It solves one of the limitations of the initial implementation of the feature. The change allows to use the Reflection API deserialization in the following scenarios:

  1. ReflectionAvroSerde is defined globally for KStreams
  2. the source topic contains messages of various types (as per TopicRecordNameStrategy)

Default constructor allows the SerDe to be used as default serde in KStreams config.
@ghost
Copy link

ghost commented Jan 7, 2020

It looks like @piotrsmolinski hasn't signed our Contributor License Agreement, yet.

The purpose of a CLA is to ensure that the guardian of a project's outputs has the necessary ownership or grants of rights over all contributions to allow them to distribute under the chosen licence.
Wikipedia

You can read and sign our full Contributor License Agreement here.

Once you've signed reply with [clabot:check] to prove it.

Appreciation of efforts,

clabot

Copy link
Member

@rayokota rayokota left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @piotrsmolinski ! Left a few comments

@piotrsmolinski
Copy link
Member Author

[clabot:check]

@ghost
Copy link

ghost commented Jan 8, 2020

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

Always at your service,

clabot

@rayokota
Copy link
Member

@piotrsmolinski , the test AvroConverterTest.testVersionMaintained is failing.

The failure in testVersionMaintained was caused by caching the schema for given name. In case
of GenericDatumReader the schema is as it comes from the serialized record. This means
if the schema evolves, there could be multiple representations of the same avro record.
Copy link
Member

@rayokota rayokota left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the PR @piotrsmolinski !

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

Successfully merging this pull request may close these issues.

None yet

2 participants