Mr-hangge commented on issue #3117:
URL: https://github.com/apache/flink-cdc/issues/3117#issuecomment-2823374856
// 2. 获取 Changelog 流并过滤 DELETE 事件
val deleteStream = tEnv
.toChangelogStream(tEnv.from("ACT_RU_TASK")) // 获取原始变更流
.filter(row => row.getKind == RowKind.DELETE)
.map { row: Row =>
val id = row.getFieldAs[String]("ID_")
("ID_", id) // 返回 (字段名, 主键值)
}(TypeInformation.of(classOf[(String, String)]))
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]