conduktor.io ↗

KIP-581 — Value of optional null field which has default value

Accepted Kafka 3.5 Connect

Adds replace.null.with.default (default true) to JsonConverter, allowing null field values that have a schema default to be preserved as null in the JSON output instead of being substituted with the default. Debezium and similar CDC connectors emit explicit nulls to represent deleted columns, but JsonConverter was silently replacing them with the schema default, corrupting the change event semantics.

Details

AuthorCheng Pan
StatusAccepted
Kafka Version3.5
JIRAKAFKA-8713
WikiView on Apache Wiki
Created2020-03-18
Last Modified2023-03-21
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.