You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Randall Hauch (Jira)" <ji...@apache.org> on 2019/10/01 22:26:00 UTC

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

     [ https://issues.apache.org/jira/browse/KAFKA-8595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Hauch resolved KAFKA-8595.
----------------------------------
    Fix Version/s: 2.4.0
         Reviewer: Randall Hauch
       Resolution: Fixed

KIP-481 was approved, and this PR was merged to the `trunk` branch, which is the branch that 2.4.0 will be based on.

> 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
>            Priority: Major
>             Fix For: 2.4.0
>
>
> 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
(v8.3.4#803005)