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: TransactWriteItems DynamoDB - SET & REMOVE moto passes with overlapping document paths. Fails with real operations #8582

Open
armanjal opened this issue Feb 10, 2025 · 1 comment

Comments

@armanjal
Copy link

armanjal commented Feb 10, 2025

Hey,
I'm having issues with testing integrations with DynamoDb as it was passing locally using moto. I understand the required changes but would be good to see this in moto as well, please?

The error: An error occurred (ValidationException) when calling the TransactWriteItems operation: Invalid UpdateExpression: Two document paths overlap with each other; must remove or rewrite one of these paths; path one: [someExtraThing], path two: [someExtraThing, nested, hello]

Thanks!

moto version == 5.0.28
Python 3.12

@armanjal armanjal changed the title TransactWriteItems DynamoDB - SET & REMOVE moto passes with overlapping document paths. Fails with real operations Bug: TransactWriteItems DynamoDB - SET & REMOVE moto passes with overlapping document paths. Fails with real operations Feb 10, 2025
@bblommers
Copy link
Collaborator

Hi @armanjal, we implemented this recently for the query operation, so it should hopefully not be too much work to also add this to transact_write_items.

PR's are always welcome, if you want to have a stab at this yourself!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants