pingles / clj-hector

Simple Cassandra client for Clojure
42 stars 19 forks source link

Add support for CQL queries. #19

Closed mstump closed 12 years ago

mstump commented 12 years ago

I've added support for fetching rows via CQL. The one odd behavior is that hector is adding a column KEY to the result so if the column values are {a 1} with a row key of k, you get back {KEY k a 1}. I can't filter it out because if the user has a column KEY then I'll end up dropping their data. What do you want to do?

nickmbailey commented 12 years ago

Looks like hector actually has a 'setSuppressKeyInColumns' method on the CqlQuery object. That should remove the row key from the column list. I don't see a reason to not just always use that setting for cql queries form clj hector.

Assuming you agree, want to update to use that?

mstump commented 12 years ago

Thanks for finding that, I'll update the pull request tonight.

mstump commented 12 years ago

It's ready for your review. Sorry for the delay.