Description
I have code that looks like this:
ArrayList<MySpecificAvro> data = Lists.newArrayList(pipeline.read(From.avroFile(
"/user/jgauci/data.avro",
Avros.specifics(MySpecificAvro.class))).materialize());
for (MySpecificAvro msa : data)
And I get this error:
Exception in thread "main" java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record cannot be cast to MySpecificAvro
The error fires inside the for loop after the materialize has completed.