Hi,

I'm starting to play with how I can support versioning with Avro.  I
created an initial schema, code-generated some some Java classes using
"org.apache.avro.tool.Main compile protocol", and then used the
DataFileWriter (with a SpecificDatumWriter) to serialize my objects to
a file.

I then modified my original schema by adding, deleting and renaming
some fields, creating version 2 of the schema.  After re-creating the
Java classes I attempted to read the version 1 file using the
DataFileStream (with a SpecificDatumReader), and this is throwing an
exception.

Is versioning supported in conjunction with the SpecificDatum*
reader/writer classes, or do I have to work at the GenericDatum level
for this to work?

Many thanks,
Alex

Reply via email to