Hello

As stated in Avro Getting Started
<https://avro.apache.org/docs/current/gettingstartedjava.html#Deserializing>
about
deserialization without code generation: "The data will be read using the
writer's schema included in the file, and the reader's schema provided to
the GenericDatumReader". Here is how GenericDatumReader is created in the
example

DatumReader<GenericRecord> datumReader = new
GenericDatumReader<GenericRecord>(schema);

But when you look at this GenericDatumReader constructor Javadoc it states
"Construct where the writer's and reader's schemas are the same." (and
actual code corresponds to this).

So the writer's schema isn’t taken from a serialized file but from a
constructor parameter?

Reply via email to