incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohica Jasha <mohica.ja...@gmail.com>
Subject Re: Insert with if-not-exists does not persist map
Date Fri, 15 Nov 2013 18:44:03 GMT
I have been testing against C* 2.0.1. It turned out that the bug is
resolved in C* 2.0.2.




On Fri, Nov 15, 2013 at 12:57 PM, Robert Coli <rcoli@eventbrite.com> wrote:

> On Fri, Nov 15, 2013 at 7:10 AM, Mohica Jasha <mohica.jasha@gmail.com>wrote:
>
>> Cassandra 2.0.2 does not persist the map collection when I specify an
>> if-not-exists clause in the insert operation:
>>
>> cqlsh:mohica>CREATE TABLE simple (id1 TEXT, ,my_map MAP<TEXT,
>> TEXT>,PRIMARY KEY (id1));
>> cqlsh:mohica>INSERT INTO simple(id1,my_map) VALUES
>> ('id1',{'a1':'b1','a2':'b1'}) if not exists;
>>
>>  [applied]
>> -----------
>>       True
>> cqlsh:mohica>SELECT * from simple ;
>>
>>  id1 | my_map
>> -----+--------
>>  id1 |   null
>>
>
> This sounds like a great candidate for a JIRA issue :
>
> https://issues.apache.org/jira/browse/CASSANDRA
>
> =Rob
>

Mime
View raw message