I want to use a Cassandra counters in CQL3 like this
create table count1 (id int PRIMARY KEY , c1 counter );
I know that in order to update the counter I need to do something of the form:
update count1 set c1 = c1+1 where ..
but before this I need to insert a value in my key (id);
but I get:
cqlsh:test2> insert into count1 (id) values (4);
Bad Request: INSERT statement are not allowed on counter tables, use UPDATE instead
what gives ?