-
Notifications
You must be signed in to change notification settings - Fork 12
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
【惊天巨bug】AddOpFieldForDebeziumRecord无法正确添加__op #25
Comments
这是因为只实现了按照MySQL的binlog的实现,也就是说是否会添加__op取决于binlog数据中是否有op这个字段,按照debezium MySQL的日志格式来看,其中是有op这样的字段标识增删改的。
具体可见:https://debezium.io/documentation/reference/stable/connectors/mysql.html 具体实现代码可参见:
由此可知,其是通过是否包含 op 字段来进行是否添加的条件的。 解决方式:
|
@Desperado2 要看一下这个SMT将标准的数据解开,StarRocksSinkConnector,应该要支持SMT模式, 另外上面的解决方法意味着columns和jsonpaths,如果有100个字段,要添加100次? |
另外当初你们有复现过,标准的mysql binlog也是不行的(删除操作) |
完整复现过程:https://junyao.tech/posts/e4464a42.html
都无法通过AddOpFieldForDebeziumRecord 添加__op:1 或者 __op:0
mysql
mongo
The text was updated successfully, but these errors were encountered: