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 22:26:00 UTC
[jira] [Comment Edited] (KAFKA-9667) Connect JSON serde strip
trailing zeros
[ https://issues.apache.org/jira/browse/KAFKA-9667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17052553#comment-17052553 ]
Andy Coates edited comment on KAFKA-9667 at 3/5/20, 10:25 PM:
--------------------------------------------------------------
Patch available: [https://github.com/apache/kafka/pull/8230]
was (Author: bigandy):
[https://github.com/apache/kafka/pull/8230]
> 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
> Affects Versions: 2.4.0
> 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)