0

I have a schema that stores values in Cassandra in the following format.

RowKey: one

   => (name=field1, value=ABC, timestamp=1223232)

   => (name=field2, value=XYZ, timestamp=1223232121)

   => (name=field3, value=ADS, timestamp=122323222323)

When I query fields (field1, field2, field3) using DataStax java driver, I am getting undefined column error. I heard that CQL 3 does not support dynamic columns. That being the case, how can I make it work with new version without making schema change?

1 Answer 1

0

http://www.datastax.com/dev/blog/does-cql-support-dynamic-columns-wide-rows

Your query should be something like SELECT * FROM <your cf> WHERE key=<key>. Those field will become cells' values, not the column names, in CQL

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. I found a solution for my problem by altering column family.stackoverflow.com/questions/14456720/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.