-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unmarshalling dynamo data officially. #374
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #374 +/- ##
==========================================
- Coverage 97.93% 97.91% -0.02%
==========================================
Files 147 147
Lines 5325 5286 -39
==========================================
- Hits 5215 5176 -39
Misses 110 110
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
({"BOOL": "False"}, False), | ||
({"SS": ["StringA", "StringB"]}, ["StringA", "StringB"]), | ||
({"NS": ["100", "200", "1.0"]}, [100, 200, 1.0]), | ||
({"BS": ["abcdef", "xyz123"]}, [b"abcdef", b"xyz123"]), |
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.
Notably in these tests, the decoder recognizes *S as actual sets rather than lists. For the most part this will be fine given that dynamo likely implements these as sets internally.
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.
Also the Booleans effectively return as python booleans rather than strings.
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.
Looks good.
Using boto3 deserializer method to unmarshall the dynamo records rather than our own version. In order to use the best standards for type standardization.