You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2025/04/30 14:27:48 UTC

(camel) branch CAMEL-22038 created (now f7b991c70c0)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch CAMEL-22038
in repository https://gitbox.apache.org/repos/asf/camel.git


      at f7b991c70c0 CAMEL-22038 - aws-ddb: float/doubles are being set as ddb attribute type=S while using transformer - Ddb2JsonDataTypeTransformer

This branch includes the following new commits:

     new f7b991c70c0 CAMEL-22038 - aws-ddb: float/doubles are being set as ddb attribute type=S while using transformer - Ddb2JsonDataTypeTransformer

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel) 01/01: CAMEL-22038 - aws-ddb: float/doubles are being set as ddb attribute type=S while using transformer - Ddb2JsonDataTypeTransformer

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch CAMEL-22038
in repository https://gitbox.apache.org/repos/asf/camel.git

commit f7b991c70c0069e5136a9d5b839339556841fc38
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 30 16:25:50 2025 +0200

    CAMEL-22038 - aws-ddb: float/doubles are being set as ddb attribute type=S while using transformer - Ddb2JsonDataTypeTransformer
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../component/aws2/ddb/transform/Ddb2JsonDataTypeTransformer.java     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/components/camel-aws/camel-aws2-ddb/src/main/java/org/apache/camel/component/aws2/ddb/transform/Ddb2JsonDataTypeTransformer.java b/components/camel-aws/camel-aws2-ddb/src/main/java/org/apache/camel/component/aws2/ddb/transform/Ddb2JsonDataTypeTransformer.java
index 9b1b78d9a9d..64285bcdc43 100644
--- a/components/camel-aws/camel-aws2-ddb/src/main/java/org/apache/camel/component/aws2/ddb/transform/Ddb2JsonDataTypeTransformer.java
+++ b/components/camel-aws/camel-aws2-ddb/src/main/java/org/apache/camel/component/aws2/ddb/transform/Ddb2JsonDataTypeTransformer.java
@@ -196,6 +196,10 @@ public class Ddb2JsonDataTypeTransformer extends Transformer {
             return AttributeValue.builder().n(value.toString()).build();
         }
 
+        if (value instanceof Double) {
+            return AttributeValue.builder().n(value.toString()).build();
+        }
+
         if (value instanceof Boolean) {
             return AttributeValue.builder().bool((Boolean) value).build();
         }