Somebody in group, please confirm if it is an issue or that needs rectified for select syntax.


On Tue, Mar 5, 2013 at 5:31 PM, Vivek Mishra <> wrote:
Thank you  i am able to solve this one.
If i am trying as :

SELECT * FROM "CompositeUser" WHERE "userId"='mevivs' LIMIT 100 ALLOW FILTERING 

it works. Somehow got confused by, which states as :

SELECT select_expression
  FROM keyspace_name.table_name
  WHERE clause AND clause ...
  ORDER BY compound_key_2 ASC | DESC

is this an issue?


On Tue, Mar 5, 2013 at 5:21 PM, Vivek Mishra <> wrote:
I am trying to execute a cql3 query as :

SELECT * FROM "CompositeUser" WHERE "userId"='mevivs' ALLOW FILTERING LIMIT 100

and getting given below error:

Caused by: InvalidRequestException(why:line 1:70 missing EOF at 'LIMIT')
at org.apache.cassandra.thrift.Cassandra$
at org.apache.thrift.TServiceClient.receiveBase(
at org.apache.cassandra.thrift.Cassandra$Client.recv_execute_cql3_query(
at org.apache.cassandra.thrift.Cassandra$Client.execute_cql3_query(

Is there something incorrect in syntax?