Skip to content

Commit

Permalink
fix a failed integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoxinyu authored and ti-chi-bot committed Mar 6, 2023
1 parent 67aa18e commit 48af35e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cdc/sink/codec/internal/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ func (c *Column) ToRowChangeColumn(name string) *model.Column {
if err != nil {
log.Panic("invalid column value, please report a bug", zap.Any("col", c), zap.Error(err))
}
col.Value = []byte(str)
} else {
col.Value = str
}
col.Value = str
default:
col.Value = c.Value
}
Expand Down
1 change: 0 additions & 1 deletion cdc/sink/codec/open/open_protocol_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func TestNonBinaryStringCol(t *testing.T) {
require.Equal(t, row, row2)
mqCol2 := row2.Update["test"]
col2 := mqCol2.ToRowChangeColumn("test")
col2.Value = string(col2.Value.([]byte))
require.Equal(t, col, col2)
}

Expand Down

0 comments on commit 48af35e

Please sign in to comment.