(lib-dynamodb): DocumentClient should handle i/o of large numbers e.g. BigInt #5363
Closed
3 tasks done
Labels
bug
This issue is a bug.
p2
This is a standard priority issue
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
queued
This issues is on the AWS team's backlog
Checkboxes for prior research
Describe the bug
The following code:
Raises the error:
We could change
num
toBigInt
but it is actually a floating point value so we'd have to only convert large numbers, as our numbers are already stored asNumber
, changing them toBigInt
isn't going to increase their precisionSDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v18.18.0
Reproduction Steps
Observed Behavior
An error is thrown:
Expected Behavior
Large numbers should be stored in the database
Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: