Skip to content

Commit

Permalink
sink(ticdc): add parameter to enable watermark events in the Debezium…
Browse files Browse the repository at this point in the history
… protocol (#11877)

close #11876
  • Loading branch information
wk989898 authored Jan 4, 2025
1 parent beee317 commit 1dd87cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/sink/codec/debezium/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ type BatchEncoder struct {

// EncodeCheckpointEvent implements the RowEventEncoder interface
func (d *BatchEncoder) EncodeCheckpointEvent(ts uint64) (*common.Message, error) {
if !d.config.EnableTiDBExtension {
return nil, nil
}
keyMap := bytes.Buffer{}
valueBuf := bytes.Buffer{}
err := d.codec.EncodeCheckpointEvent(ts, &keyMap, &valueBuf)
Expand Down

0 comments on commit 1dd87cf

Please sign in to comment.