Hi, How do i configure cassandra 1.1.0 to use cql 3.0?
or
what is the way to use CQL 3.0?
I wanted to use Less than and greater than operation in the where clause.
cql 3.0
(10 posts) (3 voices)-
Posted 7 months ago #
-
Hi, you can give cqlsh --cql3 option and if you use thrift you can setCQLVersion to "3.0.0" to enable it.
Posted 7 months ago # -
Hi Xedin thanks for the suggestion, it worked but i am not able to query the tables created using previous version, any suggestion?
cqlsh> select * from OM_CDMA_SECTOR_NEW1;
Bad Request: unconfigured columnfamily om_cdma_sector_new1thanks
KannanPosted 7 months ago # -
To fix that you will have to double-quote ColumnFamily names in mixed case like this select * from "OM_CDMA_SECTOR_NEW1";
Posted 7 months ago # -
Hi, I used CQL 3.0 but i still get the below error which i get in 2.0
cqlsh:xynergy> select "Day" from "OM_CDMA_SECTOR_DATA_MAIN" where "Day" > '7/29/2012';
Bad Request: No indexed columns present in by-columns clause with Equal operatorThanks
KannanPosted 7 months ago # -
Right, because you have to set up indexed columns before doing any operations :)
Posted 7 months ago # -
Yes i have below indexed columns set up already, is there anything missing
CREATE INDEX IDX1 ON OM_CDMA_SECTOR_DATA_MAIN (Day);
thanks
KannanPosted 7 months ago # -
I think you will have to re-create your ColumnFamily with CQL3 to use it properly and include "Date" field into PRIMARY KEY, because CQL3 makes use of composite comparators, e.g.
CREATE COLUMNFAMILY "OM_CDMA_SECTOR_DATA_MAIN" (
id <something>,
day timestamp,
PRIMARY KEY (id, day)
);Posted 7 months ago # -
Hi, I created new column family with CQL3 option. but when i load the data using the SSTableLoader , which i used for cql2.0, i recieve below error on the column family,
any idea?cqlsh:xynergy> select * from seen_ships;
TSocket read 0 bytes
cqlsh:xynergy>Posted 7 months ago # -
There is bug fix for similar issue. Check out
Posted 7 months ago #
Reply
You must log in to post.
