Re: cassandra-cli: where a and b (works) vs. where b and a (doesn't)

2011-01-19 Thread Timo Nentwig
On Jan 18, 2011, at 18:53, Nate McCall wrote: When doing mixed types on slicing operations, you should use ByteArraySerializer and handle the conversions by hand. We have an issue open for making this more graceful. Pls. have a look at

cassandra-cli: where a and b (works) vs. where b and a (doesn't)

2011-01-18 Thread Timo Nentwig
I put a secondary index on rc (IntegerType) and user_agent (AsciiType). Don't understand this bevahiour at all, can somebody explain? [default@tracking] get crawler where user_agent=foo and rc=200; 0 Row Returned. [default@tracking] get crawler where rc=200 and user_agent=foo;

Re: cassandra-cli: where a and b (works) vs. where b and a (doesn't)

2011-01-18 Thread Aaron Morton
Does wrapping foo in single quotes help? Also, does this help http://www.datastax.com/blog/whats-new-cassandra-07-secondary-indexes Aaron On 18/01/2011, at 11:54 PM, Timo Nentwig timo.nent...@toptarif.de wrote: I put a secondary index on rc (IntegerType) and user_agent (AsciiType). Don't

Re: cassandra-cli: where a and b (works) vs. where b and a (doesn't)

2011-01-18 Thread Timo Nentwig
On Jan 18, 2011, at 12:02, Aaron Morton wrote: Does wrapping foo in single quotes help? No. Also, does this help http://www.datastax.com/blog/whats-new-cassandra-07-secondary-indexes Actually this doesn't even compile because addGtExpression expects a String type (?!). StringSerializer

Re: cassandra-cli: where a and b (works) vs. where b and a (doesn't)

2011-01-18 Thread Timo Nentwig
On Jan 18, 2011, at 12:05, Timo Nentwig wrote: On Jan 18, 2011, at 12:02, Aaron Morton wrote: Does wrapping foo in single quotes help? No. Also, does this help http://www.datastax.com/blog/whats-new-cassandra-07-secondary-indexes Actually this doesn't even compile because

Re: cassandra-cli: where a and b (works) vs. where b and a (doesn't)

2011-01-18 Thread Nate McCall
When doing mixed types on slicing operations, you should use ByteArraySerializer and handle the conversions by hand. We have an issue open for making this more graceful. On Tue, Jan 18, 2011 at 10:07 AM, Timo Nentwig timo.nent...@toptarif.de wrote: On Jan 18, 2011, at 12:05, Timo Nentwig