Hi, All,
As far as I know, Debezium provides a built-in SMT "ExtractNewRecordState" to extract and flatten "payload.after" content.
But sometimes it is useful to get only changed columns and optionally primary/unique key columns in a flattened record for further data handling.
I think it might be great if "ExtractNewRecordState" can optionally compare "payload.before" / "payload.after" fields/values and only keeping changed after-state fields to compose the result flattened record.
And such feature may be controlled by providing new "ExtractNewRecordState" configurations to turn on/off such feature
- "drop.unchanged.fields" : to keep only changed fields in the resulting flattened record
- "include.primary.keys" : to optionally keep primary/unique key fields in the resulting record no matter the previous setting is present or not.
Is it possible for Debezium community to implement such feature in the future?
Best Regards.
----------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------