Debezium series: Move or copy the value of the specified field in value to headers
- 1. Demand background
- Second, create a table and insert data sql
- 3. Detailed Explanation of Core Parameters
- 3. Complete configuration
- 4. Insert data, consume topic to view data style
- 5. Realize moving multiple fields from value to headers
- 6. Realize moving multiple fields from value to headers
- 7. Summary and extension
1. Demand background
- Need to move or copy the value of the specified field in value to headers
- For example: move the key-value pair of the field product in value to headers, and change the name of the field product to productname, the effect is as follows:
headers=[('productname', b'apple')]
Related technical blogs: