Skip to content

Conversation

@banmoy
Copy link
Contributor

@banmoy banmoy commented Dec 6, 2023

In CDC framework, the length of char/varchar type represents the number of characters, but in StarRocks it represent the length of bytes. When mapping CDC char/varchar to that of StarRocks, we should multiply 3 for the length because a UTF-8 chinese character will use 3 bytes

Copy link
Contributor

@lvyanquan lvyanquan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@lvyanquan
Copy link
Contributor

lvyanquan commented Dec 6, 2023

The CI failure is not related to this pr, CC @PatrickRen.

Copy link
Contributor

@PatrickRen PatrickRen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@banmoy @lvyanquan Thanks for the contribution! LGTM

@PatrickRen PatrickRen merged commit 72bcb1d into apache:master Dec 6, 2023
ChaomingZhangCN pushed a commit to ChaomingZhangCN/flink-cdc that referenced this pull request Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants