-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Regression prevent using update to remove an entry from a map [DATACASS-841] #1007
Comments
Hey @lucboutier, there are a couple of issues here. We didn't expose remove from map as we missed that one. Map value removal is limited to a single element only because the DataStax QueryBuilder API. Let's see whether we can navigate around that limitation. Deleting map entries works only by specifying the value, not the key. For whatever reason, CQL requires a |
That's interesting. The docs meanwhile aren't fully clear and a bit confusing:
It should be:
/cc @adutra |
This change requires quite some changes, so backporting it only to |
We now accept multiple values when removing items from a collection. Additionally, we support now removal by key/keys for map columns. Resolves #1007.
Indeed I got confused by our workaround implementation and past behavior when reading your initial comment and actual documentation again.. That's indeed weird.. Note that our current workaround is to use a prepared statement that we create through the following:
|
Luc Boutier opened DATACASS-841 and commented
When migrating a project from 2.x to 3.x I encountered an issue on map field remove operation in a map.
The update statement generated is the following:
There is curly braces missing as stated here
And this should be if I'm correct
Affects: 3.1.2 (2020.0.2)
The text was updated successfully, but these errors were encountered: