Skip to content
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

service/dynamodb/dynamodbattribute: Support string type alias for map… #2870

Merged
merged 2 commits into from Oct 3, 2019

Conversation

skmcgrail
Copy link
Member

Resolves a panic that could occur during decode if a map type contained a string type alias for it's key.

Fixes #2868

@skmcgrail skmcgrail added the needs-review This issue or pull request needs review from a core team member. label Oct 2, 2019
Copy link
Contributor

@jasdel jasdel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

For the v2 SDK we may want to consider support for other comparable types such as bool, float, int and other scalars. We have received request in the past to support integer map key unmarshal support, (e.g. map[int]string), https://blog.golang.org/go-maps-in-action#TOC_5.

@skmcgrail
Copy link
Member Author

Looks good.

For the v2 SDK we may want to consider support for other comparable types such as bool, float, int and other scalars. We have received request in the past to support integer map key unmarshal support, (e.g. map[int]string), https://blog.golang.org/go-maps-in-action#TOC_5.

I've cut aws/aws-sdk-go-v2#411 to track this conversation separately and use it for additional follow-up.

@skmcgrail skmcgrail removed the needs-review This issue or pull request needs review from a core team member. label Oct 3, 2019
@skmcgrail skmcgrail merged commit 5f3810f into aws:master Oct 3, 2019
@skmcgrail skmcgrail deleted the bug/ddbMapKey branch October 3, 2019 00:29
@aws-sdk-go-automation aws-sdk-go-automation mentioned this pull request Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dynamodbattribute.Decoder panics on decoding map with custom-typed key
2 participants