How to register custormize serializer for flink kafka format type

2021-07-08 Thread Chenzhiyuan(HR)
I create table as below, and the data is from kafka. I want to deserialize the json message to Pojo object. But the message format is not avro or simple json. So I need to know how to register custormized serializer and use it for the 'format.type' property. By the way, my flink version is 1.10.0.

Re: How to register custormize serializer for flink kafka format type

2021-07-13 Thread Piotr Nowojski
Hi, It's mentioned in the docs [1], but unfortunately this is not very well documented in 1.10. In short you have to provide a custom implementation of a `DeserializationSchemaFactory`. Please look at the built-in factories for examples of how it can be done. In newer versions it's both easier an