I'm developing a little web application for studying Apache Cassandra and Java EE 6. Cassandra version is 1.1.6.
Have a problem driving me mad... I created a table with a counter (using cqlsh v. 3.0.0)
CREATE TABLE test (
author varchar PRIMARY KEY,
tot counter
)
and put some values this way:
update test set tot = tot +1 where author = 'myAuthor';
the column family is perfectly updated
author | tot
----------+-----
myAuthor | 1
BUT, if you try to delete this row and then update again (with the same key), then nothing happens! The table is no more updated and I can't figure why: it seems to me that once you used a key than you can't use it anymore. I looked for clues in datasax documentation (http://www.datastax.com/docs/1.1/references/cql/cql_lexicon) but didn't manage to find a solution.
Can someone help me? Thank in advance