clj-hector icon indicating copy to clipboard operation
clj-hector copied to clipboard

How to use CQL

Open sougatabh opened this issue 12 years ago • 2 comments

Hi, I am using this clj-hector for one of my project, creating a web tool to browse cassandra cluster. I want to execute a query like "select * from my-column-family". Could you suggest me which api to be used and how to use that. I used the below code but it does not render that data get-rows-cql-query keyspace "select * from Emp"

sougatabh avatar Dec 21 '12 12:12 sougatabh

Hi,

Sorry, I just opened up the source and realised someone had added get-rows-cql-query. I'll see if I can take a look later- could you describe the schema you have (and the data you have in it) please.

pingles avatar Dec 21 '12 14:12 pingles

Thanks for the prompt reply, I have a column family named person, below are the column metadata

Column Metadata: Column Name: full_name Validation Class: org.apache.cassandra.db.marshal.UTF8Type Column Name: email Validation Class: org.apache.cassandra.db.marshal.UTF8Type Column Name: state Validation Class: org.apache.cassandra.db.marshal.UTF8Type Column Name: birth_year Validation Class: org.apache.cassandra.db.marshal.LongType Column Name: gender Validation Class: org.apache.cassandra.db.marshal.UTF8Type

sougatabh avatar Dec 22 '12 03:12 sougatabh