You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 3.9.0, An error Aws::DynamoDB::Errors::ValidationException: Invalid attribute value type is raised when trying to update an attribute that is a key of a GSI to nil via save!, update_attributes!, etc.
This was possible until 3.8.0.
Also, it seems a configuration store_attribute_with_nil_value: false don't work.
Dynamoid.configuredo |config|
config.store_attribute_with_nil_value=falseendclassHogeincludeDynamoid::Documentfield:foo_idglobal_secondary_index(hash_key: :foo_id,projected_attributes: :all,)endhoge=Hoge.new(foo_id: 'bar').save!hoge.foo_id=nilhoge.save!# 'Aws::DynamoDB::Errors::ValidationException: Invalid attribute value type' is raised.
The text was updated successfully, but these errors were encountered:
@andrykonchin Thank you for your prompt response. 🙇
I checked the diff and I think the issue is resolved.
I will update Gemfile and test our Rails application when 3.9.1 is released.
Since
3.9.0
, An errorAws::DynamoDB::Errors::ValidationException: Invalid attribute value type
is raised when trying to update an attribute that is a key of a GSI tonil
viasave!
,update_attributes!
, etc.This was possible until
3.8.0
.Also, it seems a configuration
store_attribute_with_nil_value: false
don't work.The text was updated successfully, but these errors were encountered: