On 07/27/2011 03:24 AM, Giancarlo Frison wrote:
> I'm wondering if it's possible to load stored records with extends schemas.
> If I store a record with 3 fields, is it possible by any chance to load
> it by an extended schema definition (for instance with one field more)?
> I tried it but the serialized record is unreadable by the newest schema.
> What I can do to accomplish this purpose? 

The best practice is to store the schema used to write the data with the
data, or to store a reference to that schema with the data.  For
example, in a database, you might have a table containing Avro-format
binary objects, each prefixed by an integer that identifies the schema
of the object.  The schemas would be stored in a separate table in the
same database, keyed by that integer.

Doug

Reply via email to