One way to remove empty arrays from the JSON payload of the Debezium Outbox Pattern property, transforms.outbox.table.expand.json.payload, is to use a custom transformer in the Kafka Connect worker configuration.
The transformer logic would need to identify empty arrays in the JSON payload and remove them before forwarding the message to downstream systems. This can be achieved using a combination of JSON parsing and filtering logic.
Alternatively, you could modify the application code that generates the JSON payload to exclude empty arrays in the first place.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-08-17 11:00:00 +0000
Seen: 18 times
Last updated: Jun 21 '22
Need a Function in Python to remove entries less than 2 digits from an Array
How can arrays with different numbers of rows be stacked on top of each other?
How can arrays be plotted chronologically over a period of time?
In certain scenarios, what is the process of combining two arrays that are already sorted?
How can a list of arrays be permuted in C#?
How can you combine numerous arrays with lodash?
Is it possible for numpy bincount to function with arrays of two dimensions?