Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elgca/kafka-connect-transform


https://github.com/elgca/kafka-connect-transform

kafka kafka-connect transform

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

README

        

# kafka-connect-transform

## UnwrapDebeziumCDC

对Debezium的CDC数据进行flatten转换

- io.kafka.connect.UnwrapDebeziumCDC
- 对于insert/update数据保留after字段,并添加op和ts_ms
- 对于delete,保留原始数据,并添加op和ts_ms

```json
{
"op": "u",
"source": {
...
},
"ts_ms" : ...,
"before" : {
"field1" : "oldvalue1",
"field2" : "oldvalue2"
},
"after" : {
"field1" : "newvalue1",
"field2" : "newvalue2"
}
}
```

```json
{
"field1" : "newvalue1",
"field2" : "newvalue2",
"__operate" : "u"(op),
"__time" : ...(ts_ms)
}
```