Manage record fields with default values when reading from binary#12
Manage record fields with default values when reading from binary#12faberia wants to merge 2 commits intokarrick:masterfrom
Conversation
This handles the case of a compatible schema evolution, when new fields with default values are added. With this, consumers using the new schema can read messages produced with the old schema.
|
This is a really great idea! It seems one disadvantage of this is that it only works when the entire buffer is empty. So it would only work if it were the last outer-most record (if records embedded in records) in a byte stream. Which makes me concerned that the default handling for binary records would be different whether or not extra bytes were available to read. Can we talk about this a bit more? I'd love to see this feature integrated, and clearly the implementation is done well. I am just thinking about the other cases. |
|
Hi @karrick, |
This handles the case of a compatible schema evolution, when new fields with default values are added.
With this, consumers using the new schema can read messages produced with the old schema.