From 2659935d97f5d99c571644257ba7592f1b65d2df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karolis=20Gudi=C5=A1kis?= Date: Thu, 14 Mar 2024 06:55:55 +0200 Subject: [PATCH] Revert change --- dozer-ingestion/aerospike/src/connector.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dozer-ingestion/aerospike/src/connector.rs b/dozer-ingestion/aerospike/src/connector.rs index cef23499b9..a6246638da 100644 --- a/dozer-ingestion/aerospike/src/connector.rs +++ b/dozer-ingestion/aerospike/src/connector.rs @@ -713,7 +713,10 @@ async fn map_record( fields[*pk] = Field::String(s.clone()); } serde_json::Value::Number(n) => { - fields[*pk] = Field::String(n.as_str().to_string()); + fields[*pk] = Field::UInt( + n.as_u64() + .ok_or(AerospikeConnectorError::ParsingUIntFailed)?, + ); } v => return Err(AerospikeConnectorError::KeyNotSupported(v)), }