-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ISSUE-849: Use a map between topics and message-names when using ProtobufFile #854
ISSUE-849: Use a map between topics and message-names when using ProtobufFile #854
Conversation
@zarezadeh thank you for PR!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #854 (comment)
@iliax thanks for your review, I applied your suggestions in the code. |
@zarezadeh Yes, it is a good point. I think we definitely should not fall with NPE when provided name not found. We should either check names in constructor ( toDescriptor(..) != null) or in serialize/derialize. (requireNonNull(..)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@zarezadeh thank you for PR! |
…obufFile (provectus#854) * Use a map between topics and message-names when using ProtobufFile * Validate the given message names for the topics in ProtobufFileRecordSerDe
What changes did you make? Added the ability to specify separate message types for each topic when using ProtobufFile for deserialization. The configuration
protobufMessageName
is now a map between the topic name and the message name. The key_default
is used for specifying the message name for all other topics not defined explicitly.Is there anything you'd like reviewers to focus on?
How Has This Been Tested? (put an "X" next to an item)
Checklist (put an "X" next to an item, otherwise PR will fail)
Check out Contributing and Code of Conduct