[jira] (AVRO-1961) [JAVA] Generate getters that return an Optional

2017-01-31 Thread Jeff Maxwell (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15847288#comment-15847288 ] Jeff Maxwell commented on AVRO-1961: For supported primitives (int, double, long) it ma

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 comp

[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 i