Re: Enum backward compatibility in distributed services...

2014-02-27 Thread Doug Cutting
On Tue, Jan 28, 2014 at 9:43 AM, Amihay Zer-Kavod amih...@gmail.com wrote: Bottom line, I would go with Flex approach and retire the Specific approach entirely. I filed an issue in Jira for this. https://issues.apache.org/jira/browse/AVRO-1468 Doug

Re: Enum backward compatibility in distributed services...

2014-01-27 Thread Doug Cutting
You'd like the compile-time type-checking of specific, but the run-time flexibility of generic, right? Here's a way we might achieve this. Given the following schemas: {type:enum, name:Color, symbols:[RED, GREEN, BLUE]} {type:record, name:Shape, fields:[ {name:xPosition, type:int},

Enum backward compatibility in distributed services...

2014-01-26 Thread Amihay Zer-Kavod
Hi, We are using Avro heavily for schema definition of all of the events sent through our distributed system. The system is a multi service, java based, SaaS system, where the services upgraded a lot and in no particular order. We are using Enums in some events data and from time to time a new