An AvroRuntimeException exception is thrown when attempting to read an Avro file serialized with an older version of a schema containing a field which has been subsequently removed in the newer schema.
Steps to reproduce
- Generate code for schema v1 and v2
- Write an Avro file with the v1 code-generated Record class using the DataFileWriter and SpecificDatumWriter
- (informational only) Read the Avro file using the v1 code-generated Record class using DataFileStream and SpecificDatumReader (output follows)
- Read the Avro file using the v2 code-generated Record class using DataFileStream and SpecificDatumReader