Re: Converting SpecificRecord to GenericRecord of different Schema Versions

2021-12-06 Thread Scott Reynolds
I wrote code to do this and it is used in production at high volume. It is a recursive implementation that reads the next schema field or record from the desired schema and gets the field from the original object by name. The tricky parts are dealing with enumerations (as you noted). The code use

Re: Converting SpecificRecord to GenericRecord of different Schema Versions

2021-12-06 Thread Martin Grigorov
Hi, You will need to write a new org.apache.avro.io.Encoder. If you succeed making it then please share it with the commuity via Pull Request! If you don't - please create an issue and we will try to help! On Sun, Dec 5, 2021 at 6:31 PM KV 59 wrote: > Hi All, > > Here is my situation, I have a