Closed t4110 closed 3 years ago
I can't tell if this is a Go client bug, since I don't know how that data was put in the database. Are you using multiple clients in different languages?
In this example, I used AQL commands.
INSERT INTO test.test (PK, test) VALUES ("uint32Max", 'JSON{"num":4294967295}')
INSERT INTO test.test (PK, test) VALUES ("uint32Max+1", 'JSON{"num":4294967296}')
Since 4294967296
is a range of signed 64-bit integers, I believe it is supported by Aerospike also in map data types.
Is this a correct understanding?
Yes, this is a client bug, although it is a surprise that AQL converts the json numbers to uint64. Will release a fix today.
Fix is released in v4.4.0. Corresponding commit: https://github.com/aerospike/aerospike-client-go/commit/be40447b1071ecee1443e918248a8df39735121a Feel free to close the issue if it is resolved.
The problem looks fixed. Thanks for your quick action.
Hello
A panic occurs when getting a map with a large integer element by
GetObject
.test code
server data
result
Is this a bug in the client library?