Re: Deserialize list of JSON-encoded records with evolved Schema

2019-12-02 Thread Austin Cawley-Edwards
Hi Zoltan, Yes, that works perfectly for me 🤦‍♂. Thank you! Austin On Mon, Dec 2, 2019 at 8:44 AM Zoltan Farkas wrote: > The error suggests that you are attempt to parse a message encoded with > TestRecordV1 and you use TestRecordV2 as writer schema instead > of TestRecordV1. > > > make sure w

Re: Deserialize list of JSON-encoded records with evolved Schema

2019-12-02 Thread Zoltan Farkas
The error suggests that you are attempt to parse a message encoded with TestRecordV1 and you use TestRecordV2 as writer schema instead of TestRecordV1. make sure when you de-serialize an TestRecordV1 array into a TestRecordV2 array, you initialize your Json decoder with the writer schema not th

Deserialize list of JSON-encoded records with evolved Schema

2019-12-01 Thread Austin Cawley-Edwards
Hi, We are trying to encode a list of records into JSON with one schema and then decode the list into Avro objects with a compatible schema. The schema resolution between the two schemas works for single records, but the deserialization fails when the read schema differs from the write. Deserializ