You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Andy Coates (Jira)" <ji...@apache.org> on 2020/03/05 18:09:00 UTC

[jira] [Updated] (KAFKA-9667) Connect JSON serde strip trailing zeros

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

Andy Coates updated KAFKA-9667:
-------------------------------
    Description: 
The Connect Json serde was recently enhanced to support serializing decimals as standard JSON numbers, e.g. `1.23`.  However, there is a bug in the implementation: it's stripping trailing zeros!  `1.23` is _not_ the same as `1.230`.  Trailing zeros should not be dropped when de(serializing) decimals.

 

Original work done under KAFKA-8595

  was:The Connect Json serde was recently enhanced to support serializing decimals as standard JSON numbers, e.g. `1.23`.  However, there is a bug in the implementation: it's stripping trailing zeros!  `1.23` is _not_ the same as `1.230`.  Trailing zeros should not be dropped when de(serializing) decimals.


> Connect JSON serde strip trailing zeros
> ---------------------------------------
>
>                 Key: KAFKA-9667
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9667
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>            Reporter: Andy Coates
>            Assignee: Andy Coates
>            Priority: Major
>
> The Connect Json serde was recently enhanced to support serializing decimals as standard JSON numbers, e.g. `1.23`.  However, there is a bug in the implementation: it's stripping trailing zeros!  `1.23` is _not_ the same as `1.230`.  Trailing zeros should not be dropped when de(serializing) decimals.
>  
> Original work done under KAFKA-8595



--
This message was sent by Atlassian Jira
(v8.3.4#803005)