Skip to content

Commit

Permalink
Revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
karolisg committed Mar 28, 2024
1 parent a44fcc7 commit 2659935
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dozer-ingestion/aerospike/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
}
Expand Down

0 comments on commit 2659935

Please sign in to comment.