aiodynamo icon indicating copy to clipboard operation
aiodynamo copied to clipboard

Fix UpdateExpression breaking when setting the same field twice.

Open ojii opened this issue 7 years ago • 2 comments

ojii avatar Mar 02 '18 08:03 ojii

I have a gut feeling that this was fixed in the fast branch...

dimaqq avatar Mar 31 '20 07:03 dimaqq

It will raise a server-side ValidationException, like aiodynamo.errors.ValidationException: {'__type': 'com.amazon.coral.validate#ValidationException', 'message': 'Invalid UpdateExpression: Two document paths overlap with each other; must remove or rewrite one of these paths; path one: [f], path two: [f]'}. Ideally UpdateExpression would catch such errors.

ojii avatar Mar 31 '20 07:03 ojii