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

Bug when importing data with mixed types #235

Open
jeopalach opened this issue Mar 21, 2023 · 2 comments
Open

Bug when importing data with mixed types #235

jeopalach opened this issue Mar 21, 2023 · 2 comments

Comments

@jeopalach
Copy link

I noticed when importing data with different types of data for a field that it fails to use the correct dynamo DB syntax for some of the items. I attached "sampleTable.json" that has 3 items in it. After importing the data the item with pk = 01, sk = 01, shows up as [object Object] for the field which is being serialized as a String instead of an Object.


sampleTable.json

[
  {
    "sk": "02",
    "pk": "01",
    "status": "BAD"
  },
  {
    "sk": "01",
    "pk": "01",
    "status": {
      "name": "GOOD"
    }
  },
  {
    "sk": "03",
    "pk": "01",
    "status": null
  }
]
@bsranwar
Copy link

I do get similar error as well. The issue is we can not identify the exact error with large dataset.

@veljkomih
Copy link

I'm getting the same error. It is easily reproducible, you can just add one param which is simple object in one item, export the table, and then import it. Dynodb can't deal with this. It is quite a huge problem and a blocker for me tbh.

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

No branches or pull requests

3 participants