Skip to content

Commit

Permalink
revert some changes
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 48af35e commit 40896e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions cdc/sink/codec/internal/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ 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 = []byte(str)
default:
col.Value = c.Value
}
Expand Down
1 change: 1 addition & 0 deletions cdc/sink/codec/open/open_protocol_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ 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
1 change: 1 addition & 0 deletions tests/integration_tests/charset_gbk/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function run() {
kafka) SINK_URI="kafka://127.0.0.1:9092/$TOPIC_NAME?protocol=open-protocol&partition-num=4&kafka-version=${KAFKA_VERSION}&max-message-bytes=10485760" ;;
*) SINK_URI="mysql://normal:123456@127.0.0.1:3306/" ;;
esac
SINK_URI="mysql://normal:123456@127.0.0.1:3306/"
cdc cli changefeed create --start-ts=$start_ts --sink-uri="$SINK_URI"
if [ "$SINK_TYPE" == "kafka" ]; then
run_kafka_consumer $WORK_DIR "kafka://127.0.0.1:9092/$TOPIC_NAME?protocol=open-protocol&partition-num=4&version=${KAFKA_VERSION}&max-message-bytes=10485760"
Expand Down

0 comments on commit 40896e0

Please sign in to comment.