You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Michael Noll (JIRA)" <ji...@apache.org> on 2017/02/16 05:33:41 UTC

[jira] [Created] (KAFKA-4769) Add Float serializer, deserializer, serde

Michael Noll created KAFKA-4769:
-----------------------------------

             Summary: Add Float serializer, deserializer, serde
                 Key: KAFKA-4769
                 URL: https://issues.apache.org/jira/browse/KAFKA-4769
             Project: Kafka
          Issue Type: Improvement
          Components: clients
    Affects Versions: 0.10.1.1, 0.10.2.0
            Reporter: Michael Noll
            Assignee: Michael Noll
            Priority: Minor


We currently provide serializers/deserializers/serdes for a few data types such as String, Long, Double, but not yet for Float.

Adding built-in support Float is helpful for when e.g. you are using Kafka Connect to write data from a MySQL database, where the field was defined as a FLOAT, so the schema was generated as FLOAT, and you like to subsequently process the data with Kafka Streams.

Possible workaround:
Instead of adding Float support, users can manually convert from float to double.  The point of this ticket however is to save the user from being forced to convert manually, thus providing more convenience and slightly better Connect-Streams interoperability in a scenario such as above.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)