dominikriemer opened a new issue, #689:
URL: https://github.com/apache/streampipes/issues/689

   When connecting an MQTT Adapter to a broker and the data is a JSON object 
the data is implicitly cast from float to int when it would round down (or up) 
to an int.
   
    
   - Test 1
   
   Published message:
   ```
   
   {
       "test": 1.0,
       "test_2": 1.00000000000000000000001,
       "test_3": "1.0",
       "test_4":
   1,
       "test_5": 0.999999999999999999999}
   }
   ```
   
   Output of the MQTT Adapter (Connected to a Dashboard Sink):
   
   !image-2022-03-30-17-18-39-028.png!
   
    
   - Test 2
   
   Message:
   ```
   
   {
       "test_15": 1.000000000000001,
       "test_16": 1.0000000000000001
   }
   ```
   
   Result:
   
   !image-2022-03-30-17-26-16-617.png!
   
    
   
   Imported from Jira 
[STREAMPIPES-520](https://issues.apache.org/jira/browse/STREAMPIPES-520). 
Original Jira may contain additional context.
   Reported by: doemski.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to