CQL / cli question

2012-08-07 Thread Greg Fausak
I think I'm having a major brain fart here, I am just not getting something. I have the following CF declared in CQL -3 create columnfamily testCQL5( ac_event_id int, ac_c text, ac_mtcreation bigint, ac_action text , ac_id text, PRIMARY KEY (ac_c, ac_mtcreation)); I can do this: cqlsh:op2> selec

Re: cli question

2012-03-05 Thread Tamar Fraenkel
CompositeType. > > > > Now if I have to insert with key aaa:bbb:ccc it will work smoothly and > even if I wish to insert with just aaa:bbb it will work just fine. > > > > Do let me know if it solves your problem. > > > > Regards > > RIshabh Agrawal > >

RE: cli question

2012-03-05 Thread Rishabh Agrawal
blem. Regards RIshabh Agrawal From: Tamar Fraenkel [mailto:ta...@tok-media.com] Sent: Monday, March 05, 2012 1:19 PM To: cassandra-u...@incubator.apache.org Subject: cli question Hi! I have CF with the following deffinition: CREATE COLUMN FAMILY a_b_indx with comparator = 'Compos

cli question

2012-03-04 Thread Tamar Fraenkel
Hi! I have CF with the following deffinition: CREATE COLUMN FAMILY a_b_indx with comparator = 'CompositeType(LongType,UUIDType)' and default_validation_class = 'UTF8Type' and key_validation_class = 'CompositeType(UTF8Type,UTF8Type)'; Where the key may be a composite of the following t

Re: A Cassandra CLI question: null vs 0 rows

2011-11-18 Thread Sylvain Lebresne
Could you look at the cassandra log? This is probably due to an error on the server side. On Fri, Nov 18, 2011 at 4:20 AM, Maxim Potekhin wrote: > Should I file a ticket? I consistently see this behavior after a mass > delete. > > On 11/17/2011 12:46 PM, Maxim Potekhin wrote: >> >> Thanks Jonatha

Re: A Cassandra CLI question: null vs 0 rows

2011-11-17 Thread Maxim Potekhin
Should I file a ticket? I consistently see this behavior after a mass delete. On 11/17/2011 12:46 PM, Maxim Potekhin wrote: Thanks Jonathan. I get the bellow error. Don't have a clue as to what it means. null java.lang.RuntimeException at org.apache.cassandra.cli.CliClient.executeCL

Re: A Cassandra CLI question: null vs 0 rows

2011-11-17 Thread Maxim Potekhin
Thanks Jonathan. I get the bellow error. Don't have a clue as to what it means. null java.lang.RuntimeException at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:310) at org.apache.cassandra.cli.CliMain.processStatement(CliMain.java:217) at org.

Re: A Cassandra CLI question: null vs 0 rows

2011-11-17 Thread Jonathan Ellis
If CLI returns null it means there was an error -- run with --debug to check the exception. On Thu, Nov 17, 2011 at 11:20 AM, Maxim Potekhin wrote: > Hello everyone, > > I run a query on a secondary index. For some queries, I get 0 rows returned. > In other cases, > I just get a string that reads

A Cassandra CLI question: null vs 0 rows

2011-11-17 Thread Maxim Potekhin
Hello everyone, I run a query on a secondary index. For some queries, I get 0 rows returned. In other cases, I just get a string that reads "null". What's going on? TIA Maxim