Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建立与Canal的连接代码bug #38

Open
EbonexDev opened this issue Sep 7, 2022 · 1 comment
Open

建立与Canal的连接代码bug #38

EbonexDev opened this issue Sep 7, 2022 · 1 comment

Comments

@EbonexDev
Copy link

if event_type == EntryProtocol_pb2.EventType.DELETE:
for column in row.beforeColumns:
format_data = {
column.name: column.value
}

elif event_type == EntryProtocol_pb2.EventType.INSERT:
for column in row.afterColumns:
format_data = {
column.name: column.value
}

format_data = {column.name: column.value} 只会保留最后一个column的数据,
应该是format_data[column.name] = column.value

@linmp
Copy link

linmp commented Sep 10, 2022

哈哈哈哈 我也发现这个问题了

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

No branches or pull requests

2 participants