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

add new option overwrite_by_pkeys for DynamoDB batch_write_item #1151

Open
2 tasks
jetjinser opened this issue May 16, 2024 · 1 comment
Open
2 tasks

add new option overwrite_by_pkeys for DynamoDB batch_write_item #1151

jetjinser opened this issue May 16, 2024 · 1 comment
Labels
feature-request A feature should be added or improved. high-level-library p3 This is a minor priority issue

Comments

@jetjinser
Copy link

Describe the feature

like boto3:
https://github.com/boto/boto3/blob/5eaa86735c78be7332fbc340813ba286a629f92b/boto3/dynamodb/table.py#L91
Avoid validation error "Provided list of item keys contains duplicates" when batch write item by auto de-dup.

Use Case

Now I have to manually remove duplicates, but AttributeValue does not implement the Eq, Ord and Hash traits, which complicates the implementation.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

A note for the community

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment
@jetjinser jetjinser added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels May 16, 2024
@ysaito1001
Copy link
Collaborator

Thank you for submitting an enhancement request! Since the ability to remove duplicates is not modeled for the input to BatchWriteItem, the requested functionality will need to be implemented as some sort of a high level library (which is why you find it in boto3).

@ysaito1001 ysaito1001 added high-level-library and removed needs-triage This issue or PR still needs to be triaged. labels May 16, 2024
@jmklix jmklix added the p3 This is a minor priority issue label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. high-level-library p3 This is a minor priority issue
Projects
None yet
Development

No branches or pull requests

3 participants