Hi,
I am getting the following exception in my code, I can observe that there's something wrong while serializing my Object, the class of which looks something like this: https://gist.github.com/revolutionisme/1eea5ccf5e1d4a5452f27a1fd5c05ff1 The exact cause it seems is some field inside my nested object which is null (reversalIndicator ), but its not exactly clear why this exception is thrown, one interesting thing to note is when I serialized with kryo before, it serialized properly without any issues. Is it some requirement of the avro serializer or some bug ? or Some problem on my end? 2017-08-22 17:21:48,892 ERROR com.airplus.poc.flink.statefulFunctions.UpdateTxnState - Something unexpected happened - probably malformed event
|
Hi Biplob, have you told Avro to allow null for fields in your schema? If yes, then could you share the Avro schema, the version of Flink as well as the Avro version with us? This would help with further understanding the problem. Cheers, Till On Tue, Aug 22, 2017 at 5:42 PM, Biplob Biswas <[hidden email]> wrote: Hi, |
Hi Till,
Thanks for the response. I was assuming that the Avro Serializer will create a corresponding Avro schema with the Object class I provide. In that respect, I did the following: AvroSerializer<TransactionStateModel> txnAvroSerde = new AvroSerializer<>(TransactionStateModel.class);
|
Hi,
I am still stuck here, and I still couldn't find a way to make Avro accept null values. Any help here would be really appreciated. Thanks, Biplob -- Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/ |
Free forum by Nabble | Edit this page |