Re: Getting NullPointerException while executing query

2013-04-10 Thread Kuldeep Mishra
I am using cassandra 1.2.0, Thanks Kuldeep On Wed, Apr 10, 2013 at 10:40 PM, Sylvain Lebresne wrote: > On which version of Cassandra are you? I can't reproduce the > NullPointerException on Cassandra 1.2.3. > > That being said, that query is not valid, so you will get an error > message. T

Re: Getting NullPointerException while executing query

2013-04-10 Thread Sylvain Lebresne
On which version of Cassandra are you? I can't reproduce the NullPointerException on Cassandra 1.2.3. That being said, that query is not valid, so you will get an error message. There is 2 reasons why it's not valid: 1) in token(deep), deep is not a valid term. So you should have something like:

Getting NullPointerException while executing query

2013-04-10 Thread Kuldeep Mishra
Hi , TABLE - CREATE TABLE "CQLUSER" ( id int PRIMARY KEY, age int, name text ) Query - select * from "CQLUSER" where token(name) > token(deep); ERROR - Bad Request: Failed parsing statement: [select * from "CQLUSER" where token(name) > token(deep);] reason: NullPointerExce