incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mateus Ferreira e Freitas <>
Subject RE: Can I create a counter column family with many rows in 1.1.10?
Date Wed, 06 Mar 2013 11:42:37 GMT

Ah, I'ts with many columns, not rows. I use this in cql 2-3 create table cnt (key text PRIMARY
KEY, y2003 counter, y2004 counter);it says this is not a counter column family, and if I try
to use default_validation_class=CounterType,it says this is not a valid keyword.What I'm supposed
to type in order to create it?

Subject: Re: Can I create a counter column family with many rows in 1.1.10?
Date: Tue, 5 Mar 2013 23:47:38 -0800

Note that CQL 3 in 1.1 is  compatible with CQL 3 in 1.2. Also you do not have to use CQL 3,
you can still use the cassandra-cli to create CF's. 
The syntax you use to populate it depends on the client you are using. 

-----------------Aaron MortonFreelance Cassandra DeveloperNew Zealand

On 5/03/2013, at 9:16 PM, Abhijit Chanda <> wrote:Yes you can
, you just have to use CQL3 and 1.1.10 onward cassandra supports CQL3.  Just you have to aware
of the fact that a column family that contains a counter column can only contain counters.
In other other words either all the columns of the column family excluding KEY have the counter
type or none of them can have it.

Best Regards,
Abhijit Chanda

View raw message