You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Data Craftsman <da...@gmail.com> on 2012/03/01 22:41:52 UTC

Composite primary key does not work on Cassandra 1.1.0-beta1

Howdy,

Here is the the CQL and error. Did I do something wrong?

/home/cassandra>cqlsh
Connected to Test Cluster at localhost:9160.
[cqlsh 2.1.0 | Cassandra 1.1.0-beta1 | CQL spec 2.0.0 | Thrift protocol 19.28.0]
Use HELP for help.

cqlsh> use demo;

cqlsh:demo> CREATE TABLE timeline (
... user_id varchar,
... tweet_id uuid,
... author varchar,
... body varchar,
... PRIMARY KEY (user_id, tweet_id)
... );

Bad Request: line 7:0 mismatched input ')' expecting EOF

cqlsh:demo>

Reference: http://www.datastax.com/dev/blog/schema-in-cassandra-1-1

Thanks,
Charlie | DBA