gaoran10 edited a comment on issue #6034: [Pulsar IO][Issue 5633]Support avro schema for debezium connector URL: https://github.com/apache/pulsar/pull/6034#issuecomment-615020718 I have made some changes, use the JsonConverter as before, and the AvroConverter is used differently from the JsonConverter, the user has two ways to use it. 1. The schema is some as below, we could process the GenericRecord. Tip: use the `KeyValueEncodingType.SEPARATED` encoding type. `Schema<KeyValue<GenericRecord, GenericRecord>> schema = Schema.KeyValue(Schema.AUTO_CONSUME(), Schema.AUTO_CONSUME(), KeyValueEncodingType.SEPARATED);` 2. We could get the original byte array through the method `getKeyBytes()` and `getData()` of the `Message`, the original byte array is converted by the AvroConverter. @tuteng @sijie @jiazhai @codelipenghui Please have a review. Thanks.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
