incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Morton <aa...@thelastpickle.com>
Subject Re: Cassandra data update for a row
Date Wed, 18 Dec 2013 02:22:50 GMT
> 'twitter_row_key': OrderedDict([('411186035495010304', u'{"score": 0, "tid": 411186035495010304,
"created_at": "Thu Dec 12 17:29:24 +0000 2013", "favorite": 0, "retweet": 0, "approved": "true"}'),])
> 
> How can I set approved to 'false' ??
> 
> 
It looks like the value of the 411186035495010304 column is a string, to cassandra that’s
an opaque typer we do not make partial updates to. 

If you need to update the values individually they need to be stored in columns. 

Cheers

-----------------
Aaron Morton
New Zealand
@aaronmorton

Co-Founder & Principal Consultant
Apache Cassandra Consulting
http://www.thelastpickle.com

On 13/12/2013, at 8:18 am, Kumar Ranjan <winnerdood@gmail.com> wrote:

> Hey Folks,
> 
> I have a row like this. 'twitter_row_key' is the row key and 411186035495010304 is column.
Rest is values for 411186035495010304 column. See below.
> 
> 'twitter_row_key': OrderedDict([('411186035495010304', u'{"score": 0, "tid": 411186035495010304,
"created_at": "Thu Dec 12 17:29:24 +0000 2013", "favorite": 0, "retweet": 0, "approved": "true"}'),])
> 
> How can I set approved to 'false' ??
> 
> 
> 
> When I try insert for row key 'twitter_row_key' and column 411186035495010304, it overwrites
the whole data and new row becomes like this
> 
> 'twitter_row_key': OrderedDict([('411186035495010304', u'{"approved": "true"}'),])
> 
> 
> 
> Any thoughts guys? 
> 


Mime
View raw message