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
| Author | Cheng Pan |
| Status | Accepted |
| Kafka Version | 3.5 |
| JIRA | KAFKA-8713 |
| Wiki | View on Apache Wiki |
| Created | 2020-03-18 |
| Last Modified | 2023-03-21 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.