Re: [IDEA] Making schema evolution for enums slightly easier.

2017-02-01 Thread Niels Basjes
Thanks for the idea. I'm gonna play around with that to see if it could work. Niels On Tue, Jan 31, 2017 at 5:57 PM, Ryan Blue wrote: > If you want to solve this problem by using a String to encode the value, > then you can do that by defining a logical type that is

Re: [IDEA] Making schema evolution for enums slightly easier.

2017-01-31 Thread Ryan Blue
If you want to solve this problem by using a String to encode the value, then you can do that by defining a logical type that is an enum-as-string. But I'm not sure you want to do that. The nice thing about an enum is that you use what you know about the schema ahead of time to get a much more

[IDEA] Making schema evolution for enums slightly easier.

2017-01-31 Thread Niels Basjes
Hi, I'm working on a project where we are putting message serialized avro records into Kafka. The schemas are made available via a schema registry of some sorts. Because Kafka stores the messages for a longer period 'weeks' we have two common scenarios that occur when a new version of the schema