There should be a way to do schema resolution with SpecificDatumReader

Details

Description

Presently one could do schema resolution (where the schema of the Avro data stream is different from the Schema desired by the reader) only with GenericDatumReader. A similar facility is needed for SpecificDatumReader as well.

Doug Cutting
added a comment - 11/Jan/10 16:37 This is already possible. One creates the SpecificDatumReader using the expected class. The user of the DatumReader (e.g., DataFileReader) can then call setSchema() with the actual schema.