CQL does not support count().

On Fri, May 27, 2011 at 4:18 AM, Donal Zang <zan...@ihep.ac.cn> wrote:
> Hi,
>  I'm using the jar from the trunk source code .
> I tried the following select cql, but it get the wrong result.(I can get the
> right result using pycassa's get_count())
> cqlsh> select count(1) from t_container where KEY = '2011041210' ;
> (0,)
> cqlsh> select count(*) from t_container where KEY = '2011041210' ;
> (0,)
> Any ideas? Should the KEY be converted to bytes?
>
> Thanks!
> Donal
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Reply via email to