Re: GenericDatumReader writer's schema question

2022-08-05 Thread Ivan Tsyba
Hello Oscar, Yes, I've looked inside DataFileReader and now it's clear for me Thank you пт, 22 лип. 2022 р. о 12:46 Oscar Westra van Holthe - Kind < os...@westravanholthe.nl> пише: > Hi Ivan, > > You're correct about the GenericDatumReader javadoc, but the writer > schema can be adjusted after

Re: GenericDatumReader writer's schema question

2022-07-22 Thread Oscar Westra van Holthe - Kind
Hi Ivan, You're correct about the GenericDatumReader javadoc, but the writer schema can be adjusted after creation. This is what the DataFileReader does. So after the DataFileReader is initialised, the underlying GenericDatumReader uses the the schema in the file as write schema (to understand

GenericDatumReader writer's schema question

2022-07-20 Thread Ivan Tsyba
Hello As stated in Avro Getting Started 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".