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

[jira] [Commented] (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=17052373#comment-17052373 ] 

ASF GitHub Bot commented on KAFKA-9667:
---------------------------------------

big-andy-coates commented on pull request #8230: KAFKA-9667: Connect JSON serde strip trailing zeros
URL: https://github.com/apache/kafka/pull/8230
 
 
   This change turns on exact decimal processing in Jackson for decimals, meaning trailing zeros are maintained. This means a value of `1.2300` can be deserialized and re-serialized to JSON without any loss of information.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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.



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