-
Notifications
You must be signed in to change notification settings - Fork 564
DynamoDBAttributeValue) Integer() hides float conversion and truncation #454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I should note: we could switch to use |
The I'm also OK with an |
@bmoffatt thanks |
Uh oh!
There was an error while loading. Please reload this page.
When converting
DynamoDBAttributeValue
usingInteger()
method it currently hides the conversion toFloat64
one is passed.This hidden functionality hides its true nature and has led to errors downstream.
We are doing this as we are having to convert from a
DynamoDBAttributeValue
tojson
and therefore could be afloat
or anint
Example:
It would seem more predictable behaviour for
Integer()
to return an error ifDynamoDBAttributeValue
is not ofinteger
type.The text was updated successfully, but these errors were encountered: