cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 廖欽啟 <missionaryl...@gmail.com>
Subject insert two records with same primary key via batch
Date Sat, 16 Aug 2014 11:45:44 GMT
Hi,

   I'm trying this cql against cassandra 2.0.9:
   BEGIN  BATCH
      INSERT INTO cqlengine_test_lwt.test_if_not_exists_model (id, count,
text) VALUES (1, 8, '123');
      INSERT INTO cqlengine_test_lwt.test_if_not_exists_model (id, count,
text) VALUES (1, 9, '111');
   APPLY BATCH;

   In this case, id is the primary key.
   And when querying the record with id=1, the result I got is (id=1,
count=9, text='123'), while I expect
   the result should be (id=1, count=9, text='111').

   Did I miss anything or is this result expected?

B.R,
Mission.

Mime
View raw message