You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Almog Gavra (JIRA)" <ji...@apache.org> on 2019/06/24 23:21:00 UTC

[jira] [Created] (KAFKA-8595) Support SerDe of Decimals in JSON that are not HEX encoded

Almog Gavra created KAFKA-8595:
----------------------------------

             Summary: Support SerDe of Decimals in JSON that are not HEX encoded
                 Key: KAFKA-8595
                 URL: https://issues.apache.org/jira/browse/KAFKA-8595
             Project: Kafka
          Issue Type: Improvement
            Reporter: Almog Gavra
            Assignee: Almog Gavra


Most JSON data that utilizes precise decimal data represents it as a decimal string. Kafka Connect, on the other hand, only supports a binary HEX string encoding (see example below). We should support deserialization and serialization for any of the following types:
{code:java}
{
  "asHex": "D3J5",
  "asString": "10.12345"
  "asNumber": 10.2345
}{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)