I'm using the latest Cassandra v.1.1.5.
DB schema is defined through CLI.
When I try to create a column family with primary key I get the error as shown below:
[default@somekeyspace] CREATE COLUMN FAMILY FastFoodEatings(user text PRIMARY KEY);
Syntax error at position 36: missing EOF at '('
I also tried to use 'CREATE TABLE' as CQL 3.0.0 spec. defined but it outputs the below error:
[default@somekeyspace] CREATE TABLE monkeySpecies (
... species text PRIMARY KEY,
... common_name text,
... population varint,
... average_size int
... ) WITH comment='Important biological records'
... AND read_repair_chance = 1.0;
Syntax error at position 7: no viable alternative at input 'TABLE'
Which suggests that neither 2.0.0, nor 3.0.0 versions support the 'PRIMARY KEY'.