On 06/24/2011 11:27 AM, Pere Ferrera wrote:
> </>Hi,
> I'm evaluating Avro for using it in a big project. I have a few questions:
>
> - What's the equivalent of NullWritable in Avro?
The schema "null".
> - I generate an entity A. I save some instances of it in file F. I
> remove one field from A's definition and re-generate the code of it. If
> I read file F, I get "org.apache.avro.AvroRuntimeException("Bad
> index");". Isn't this behavior breaking the statement: "*if the writer's
> record contains a field with a name not present in the reader's record,
> the writer's value for that field is ignored.*" (here
> <http://avro.apache.org/docs/current/spec.html#Schema+Resolution>) ?
> (I'm using a DataFileReader wrapping a SpecificDatumWriter to test this).
That should work. What version of Avro are you using? Can you provide
a complete example that illustrates the problem?
Doug