You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampipes.apache.org by GitBox <gi...@apache.org> on 2022/11/26 15:20:57 UTC

[GitHub] [streampipes] dominikriemer opened a new issue, #689: Implicit Casting to int by MQTT Adapter

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: issues-unsubscribe@streampipes.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [streampipes] dominikriemer closed issue #689: Implicit Casting to int by MQTT Adapter

Posted by GitBox <gi...@apache.org>.
dominikriemer closed issue #689: Implicit Casting to int by MQTT Adapter 
URL: https://github.com/apache/streampipes/issues/689


-- 
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: issues-unsubscribe@streampipes.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org