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

Avro schema for nested arrays doesn't work

2010-09-10 Thread Alex Kroifer
Avro schema for nested arrays definition doesn't parse: Schema: {type: array, items: {name: Rec1, type: record, fields : [ {type: array, items: {name: Rec2, type:record, fields : [ {name: Scalar, type: string}]}}]}} Result: No field name: {type:array,items:{name:Rec2

<    1   2