Issue with reading old data with a new Avro Schema

2015-04-08 Thread Nicolas Phung
Hello, I'm trying to read old avro binary data with a new schema (I add a new field). This is the Avro Schema (OLD) I was using to write Avro binary data before: { namespace: com.hello.world, type: record, name: Toto, fields: { name: a, type: [

Re: Issue with reading old data with a new Avro Schema

2015-04-08 Thread Lukas Steiblys
The schema is not valid JSON. Maybe you forgot the “[“ after “fields:”? Lukas From: Nicolas Phung Sent: Wednesday, April 8, 2015 9:45 AM To: user@avro.apache.org Subject: Issue with reading old data with a new Avro Schema Hello, I'm trying to read old avro binary data with a new schema (I

Re: Issue with reading old data with a new Avro Schema

2015-04-08 Thread Nicolas Phung
OLD: { namespace: com.hello.world, type: record, name: Toto, fields: [ { name: a, type: [ string, null ] }, { name: b, type: string } ] } NEW: {