Skip to content

Get garbled codes in the snapshot phase with MySql CDC #1166

@lknan

Description

@lknan

Describe the bug(Please use English)
A clear and concise description of what the bug is.

Environment :

  • Flink version : 1.13.1
  • Flink CDC version: 2.2.1
  • Database and version: 8.0.28

To Reproduce
Steps to reproduce the behavior:
mysql数据库编码为utf-8,A库的a1表的aa1字段的编码为ucs2,然后使用flink cdc读取数据,存量数据读取是乱码的;
读取binlog的新增数据是不乱码的;
然后我查了下读取binlog对aa1字段使用的utf-16编码,使用的也是utf-16解码;
读取存量快照的时候对usc2是utf-8编码(可能是默认),utf-16解码,所以乱码了

Additional Description
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions