cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Data Craftsman <database.crafts...@gmail.com>
Subject Composite primary key does not work on Cassandra 1.1.0-beta1
Date Thu, 01 Mar 2012 21:41:52 GMT
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

Mime
View raw message