boto / boto

For the latest version of boto, see https://github.com/boto/boto3 -- Python interface to Amazon Web Services
http://docs.pythonboto.org/
Other
6.48k stars 2.26k forks source link

DynamoDB2: item.partial_save() does not map to the correct "ADD" Action. It always resolves to "PUT", which is sometimes incorrect. #1999

Open ugniusramanauskas opened 10 years ago

ugniusramanauskas commented 10 years ago

Boto DynamoDB1 had it implemented correctly. However, DynamoDB2 is ignoring the ADD action. i.e.:

When the attribute "field1" already exists (and is of StringSet type), the following code should resolve to an API call with an "Action: ADD":

add_data = set([new_data])
item['field1'] = add_data
item.partial_save()

Unfortunately, I am not experienced enough to contribute a correction myself. But would love if one of the authors could correct it when he/she gets a chance. Thank you.

toastdriven commented 10 years ago

What version of Boto did you see this under? This changed significantly under Boto 2.13.2 & I'm having trouble reproducing it. How is item being created?