You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2013/12/09 09:13:08 UTC

[jira] [Commented] (CASSANDRA-6460) adjust sstableloader to accept a collection field for update

    [ https://issues.apache.org/jira/browse/CASSANDRA-6460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13842964#comment-13842964 ] 

Sylvain Lebresne commented on CASSANDRA-6460:
---------------------------------------------

The sstableloader does only one thing, it loads sstables. It is entirely blind to what types of operation the sstable contains. If the sstable contains a collection insertion (that deletes the previous value first) then that's what will be loaded, if it contains just updates to a collection, then that's what will be loaded.

Or maybe you are talking about the SSTableSimpleWriter/SSTableSimpleUnsortedWriter?


> adjust sstableloader to accept a collection field for update
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-6460
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6460
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Laura Adney
>
> Currently in sstableloader (Cassandra version 1.2) there is not a way to specify an action for a field that is a collection.  So an update parameter might be useful in some cases where you dont want to overwrite the collection in a row, but you want to add what ever is coming in, into the collection.
> So in cqlsh you would do:
> UPDATE users
>   SET emails = emails + {'fb@friendsofmordor.org'} WHERE user_id = 'frodo';
> Is there a way to emulate that with the bulk loader?



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)