You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2020/10/04 09:28:00 UTC

[jira] [Commented] (FLINK-19500) Using canal-json,debezium-json,maxwell-json serialization, the DELETE semantics should be interpreted.

    [ https://issues.apache.org/jira/browse/FLINK-19500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17207299#comment-17207299 ] 

Jark Wu commented on FLINK-19500:
---------------------------------

Hi [~caozhen1937], AFAIK, for DELETE messages, Maxwell encodes the record into "data" field, not "old" field. The "old" field is only used for UPDATE messages. However, for maxwell-json serialization format, there are only DELETE and INSERT messages. 

> Using canal-json,debezium-json,maxwell-json serialization, the DELETE semantics should be interpreted.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-19500
>                 URL: https://issues.apache.org/jira/browse/FLINK-19500
>             Project: Flink
>          Issue Type: Bug
>          Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
>            Reporter: CaoZhen
>            Priority: Minor
>
> When Using {{canal-json}},{{debezium-json}},{{maxwell-json}} serialization, the RowData of {{DELETE}} was not put {{old}} data into JSON message.
>  
> *For example,Maxwell-json:*
> *the Rowdata:*
> -U(106,hammer,16oz carpenter's hammer,1.0)
>  
> *active Maxwell-json serialization:*
>  
> {code:java}
> {
>     "data":{
>         "id":106,
>         "name":"hammer",
>         "description":"16oz carpenter's hammer",
>         "weight":1
>     },
>     "type":"delete"
> }
> {code}
>  
>  
> *expected Maxwell-json serialization:* 
> {code:java}
> {
>     "old":{
>         "id":106,
>         "name":"hammer",
>         "description":"16oz carpenter's hammer",
>         "weight":1
>     },
>     "data":null,
>     "type":"delete"
> }
> {code}
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)