Re: Exposing a constant in an Avro Schema

2011-11-15 Thread Andrew Kenworthy
Kenworthy adwkenwor...@yahoo.com Sent: Monday, November 14, 2011 9:09 PM Subject: Re: Exposing a constant in an Avro Schema Named types (records, fields, fixed, enum) can store arbitrary user properties attached to the schema ( similar to doc but no special meaning). Do you want this constant

Exposing a constant in an Avro Schema

2011-11-14 Thread Andrew Kenworthy
Hi, I would like to embed a schema version number in the schema that I use for writing data: it would be read-only so that I can determine later on which version of my avro schema was used. The best I could come up with is to (ab)use an enum with a single value like this, as I couldn't find