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

provider/aws: fix bug with reading GSIs from dynamodb #3300

Merged
merged 1 commit into from
Oct 15, 2015
Merged

provider/aws: fix bug with reading GSIs from dynamodb #3300

merged 1 commit into from
Oct 15, 2015

Conversation

garrettheel
Copy link

Reading from a dynamodb table with a GSI with any non_key_attributes is currently broken due to the following error returned from d.Set("global_secondary_index", gsiList):

global_secondary_index.1.non_key_attributes.0: '' expected type 'string', got unconvertible type '*string'

The error occurs because the aws sdk returns a list of string pointers, not strings.
http://docs.aws.amazon.com/sdk-for-go/api/service/dynamodb.html#type-Projection

This fixes that issue by dereferencing in a new list.

@garrettheel
Copy link
Author

Bump - anything more you need from me to get this merged?

@catsby
Copy link
Contributor

catsby commented Oct 15, 2015

Thanks! Sorry for the delay 😄

catsby added a commit that referenced this pull request Oct 15, 2015
provider/aws: fix bug with reading GSIs from dynamodb
@catsby catsby merged commit 2f94e57 into hashicorp:master Oct 15, 2015
@garrettheel garrettheel deleted the fix-dynamodb-gsi-bug branch October 21, 2015 19:25
@ghost
Copy link

ghost commented Apr 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants