You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please fill out the sections below to help us address your issue.
Version of AWS SDK for Go?
v1.13.16
Version of Go (go version)?
1.9.3
What issue did you see?
When I have a record with an empty list in dynamodb, and I read it with the go sdk, and call dynamodbattribute.UnmarshalMap, then empty list values are cast to nil.
Thanks for reporting this issue @jcoyne. I think this is a duplicate of the outstanding feature request #682. Generally empty lists are invalid DynamoDB attribute values. This is why the SDK uses NULL. Though #682 highlights this is not always the the case. +1'ing that feature request will help us prioritize it in the SDK's backlog.
Please fill out the sections below to help us address your issue.
Version of AWS SDK for Go?
v1.13.16
Version of Go (
go version
)?1.9.3
What issue did you see?
When I have a record with an empty list in dynamodb, and I read it with the go sdk, and call
dynamodbattribute.UnmarshalMap
, then empty list values are cast to nil.Steps to reproduce
Create an record with an empty list on the CLI:
Then fetch the record and unmarshal it:
The output is:
But I would expect:
If you have have an runnable example, please include it.
The text was updated successfully, but these errors were encountered: