Re: Adding new field with default value to an Avro schema

2015-02-03 Thread Sean Busbey
Schema evolution in Avro requires access to both the schema used when writing the data and the desired Schema for reading the data. Normally, Avro data is stored in some container format (i.e. the one in the spec[1]) and the parsing library takes care of pulling the schema used when writing out

Re: Adding new field with default value to an Avro schema

2015-02-03 Thread Lukas Steiblys
On a related note, is there a tool that can check the backwards compatibility of schemas? I found some old messages talking about it, but no actual tool. I guess I could hack it together using some functions in the Avro library. Lukas From: Burak Emre Sent: Tuesday, February 3, 2015 9:01 AM

Re: Adding new field with default value to an Avro schema

2015-02-03 Thread Sean Busbey
On Tue, Feb 3, 2015 at 11:34 AM, Lukas Steiblys lu...@doubledutch.me wrote: On a related note, is there a tool that can check the backwards compatibility of schemas? I found some old messages talking about it, but no actual tool. I guess I could hack it together using some functions in the

Re: Adding new field with default value to an Avro schema

2015-02-03 Thread Doug Cutting
On Tue, Feb 3, 2015 at 9:34 AM, Lukas Steiblys lu...@doubledutch.me wrote: On a related note, is there a tool that can check the backwards compatibility of schemas? https://avro.apache.org/docs/current/api/java/org/apache/avro/SchemaCompatibility.html Doug