-
Notifications
You must be signed in to change notification settings - Fork 153
feat(parser): DynamoDBMarshalled
helper to parse DynamoDB data structure
#3442
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
feat(parser): DynamoDBMarshalled
helper to parse DynamoDB data structure
#3442
Conversation
Hi @arnabrahman - I just got back from my annual leave. I will review this PR by the end of the week. Thank you for your patience and happy new year! |
Hi @dreamorosi , welcome back! I hope you had a refreshing holiday and wish you a happy new year as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR and for your patience!
I have a minor comment in the signature of the helper so that it's aligned with the underlying unmarshall
function, but other than that I am ready to approve the PR.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR!
Just as FYI @arnabrahman - Over the next couple of weeks the team and I will invest time in creating a roadmap and backlog for the next two quarters. With that, we'll be creating a number of issues and label them accordingly. |
@dreamorosi Thanks for the update, will be looking forward to it 🚀 |
Summary
When working with Amazon DynamoDB Stream events, the service sends the DynamoDB items in the database-specific format rather than regular JSON objects.
For example, a string might be represented as { "S": "foo" } rather than just foo. This makes parsing the actual changes within an event hard to parse and validate since it requires customers writing a Zod schema with this in mind.
This PR introduces a helper function
DynamoDBMarshalled
to work this structureChanges
Issue number: #3194
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.