[
https://issues.apache.org/jira/browse/CASSANDRA-6599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14081004#comment-14081004
]
Robert Stupp commented on CASSANDRA-6599:
-----------------------------------------
bq. not sure I like accepting set literals for map operations.
but a {{map_col - \{'keyFoo', 'keyBar'\}}} is more intutivie IMO - and closer
to the [syntax to remove set
elements|http://www.datastax.com/documentation/cql/3.1/cql/cql_reference/update_r.html?scroll=reference_ds_g4h_qzq_xj__using-a-collection-set]
> CQL updates should support "column = column - { key1, key2, ... }" syntax for
> removing map elements
> ---------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-6599
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6599
> Project: Cassandra
> Issue Type: Wish
> Reporter: Gavin
> Assignee: Benjamin Lerer
> Priority: Minor
> Labels: cql
> Fix For: 2.1.1
>
> Attachments: CASSANDRA-6599.txt
>
>
> A variable number number of elements can be removed from lists and sets using
> an update statement of the form "update .... set column=column - {....} where
> ...". This syntax should also be supported for map columns. This would be
> especially useful for prepared statements (I know that you can use "set
> column[...] = null" to remove items in an update statement, but that only
> works for one element at a time).
--
This message was sent by Atlassian JIRA
(v6.2#6252)