...
isOptional()
return true
and defaultValue()
return not null
, in other word, an optional field which has default value, if we use org.apache.kafka.connect.json.JsonConverter
will take the to serialize the field, will eventually get defaultValue()
...
Public Interfaces
accept.optional.null
, default false
Proposed Changes
accept.optional.null
in org.apache.kafka.connect.storage.ConverterConfig
, default false
. For a ny third party converters can extend ConverterConfig
just like JsonConverterConfig to read this property and implement it.
Change fields TO_CONNECT_CONVERTERS, LOGICAL_CONVERTERS, method convertToConnect(Schema schema, JsonNode jsonValue) to no-static.
or an optional null
field which has default value,
- if set
accept.optional.null=true
, takenull
; - if set
accept.optional.null=false
, takedefault value
or an optional null
field which has default value,
- if set
accept.optional.null=true
, takenull
; - if set
accept.optional.null=false
, takedefault value
Compatibility, Deprecation, and Migration Plan
...
Rejected Alternatives
null
on a an optionalnull