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

Empty maps mangled in dump #3

Open
sveniu opened this issue Sep 18, 2017 · 1 comment
Open

Empty maps mangled in dump #3

sveniu opened this issue Sep 18, 2017 · 1 comment
Labels

Comments

@sveniu
Copy link

sveniu commented Sep 18, 2017

When dumping tables that have map fields with an empty value, the raw Scan response from DynamoDB will contain something like this: "data":{"M":{}}

The JSON produced by dyndump will contain this: "data":{}

When trying to restore the table, DynamoDB returns HTTP 400 with error:

ValidationException: Supplied AttributeValue is empty, must contain exactly one of the supported datatypes

Editing the JSON to replace "data":{} with either "data":{"M":{}} or "data":{"NULL":true} will make the restore work. I'm not sure if there is any practical difference between the two.

@gwatts
Copy link
Owner

gwatts commented Sep 18, 2017

Thanks for the bug report - Will take a look, probably in a couple of days

@gwatts gwatts added the bug label Sep 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants