You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Yanquan Lv (Jira)" <ji...@apache.org> on 2024/12/10 09:01:00 UTC

[jira] [Created] (FLINK-36877) Kafka Sink output canal-json format of deleted record is incorrect format.

Yanquan Lv created FLINK-36877:
----------------------------------

             Summary: Kafka Sink output canal-json format of deleted record is incorrect format. 
                 Key: FLINK-36877
                 URL: https://issues.apache.org/jira/browse/FLINK-36877
             Project: Flink
          Issue Type: Bug
          Components: Flink CDC
    Affects Versions: cdc-3.2.1, cdc-3.1.1, cdc-3.2.0, cdc-3.1.0
            Reporter: Yanquan Lv
             Fix For: cdc-3.3.0


Current output canal-json for deleted record of Kafka Sink is like:

 
{code:java}
'{"old":[{"id":8,"name":"zhangsan3","age":30}],"data":null,"type":"DELETE","database":null,"table":"flink_penghai_test_yaml_student_copy2","pkNames":["id"],"ts":0}'. {code}
The before record in changelog should be written to data field instead of old field.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)