...
Current state: Under Discussion
Discussion thread: https://listswww.mail-archive.com/dev@kafka.apache.org/threadmsg105887.html/r69b11ca1d298a5c849f8af1af0b2708abfc5b1c3e44a402917f6646c%40%3Cdev.kafka.apache.org%3E
JIRA:
Jira | ||||||
---|---|---|---|---|---|---|
|
...
null
, we can treat it as null
or default value
Public Interfaces
Add a config
...
property `serialize.accept.optional.
...
null`,
...
default
...
`false`, for compatibility.
Proposed Changes
null in org.apache.kafka.connect.storage.ConverterConfig
, default false
ny third party converters can extend ConverterConfig
just like JsonConverterConfig to read this property and implement it.
Change private fields TO_CONNECT_CONVERTERS, LOGICAL_CONVERTERS, and private method convertToConnect(Schema schema, JsonNode jsonValue)
to no-static.
Serialization(convertToJson),
...
for an optional null field which has default value,
if set serialize.accept.optional.null=true, take null;
if
setaccept.optional.null=false
, takedefault value
or an optional null
field which has default value,
- if set
set serialize.accept.optional.null=
true, takenull
; if set accept.optional.null=false, take default value.
Compatibility, Deprecation, and Migration Plan
...
null
on an optionalnull