Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Status

Current state: Accepted

Under Discussion thread: here
Discussion

Vote thread: here

JIRA: here KAFKA-15248

Motivation

KIP-907 introduced new SerDes for Booleans in the org.apache.kafka.common.serialization package. This small KIP proposes extending the new SerDes to Kafka Connect, by adding a new org.apache.kafka.connect.converter.BooleanConverter class to convert from/to org.apache.kafka.connect.data.Schema.Type.BOOLEAN types.

...

Most of the Connect Schema primitive types have converters that are used for serialization. This KIP proposes using the newly added BooleanSerializer / BooleanDeserializer classes to add support for booleans as well. Just like the other converters for primitives, the schema type returned during deserialization will always be an optional boolean schema (a note will be added to the converter's JavaDoc).

Compatibility, Deprecation, and Migration Plan

...