Here is a CQL example from a Cassandra 1.1 blog post related to blogs on the Datastax website
http://www.datastax.com/dev/blog/schema-in-cassandra-1-1
CREATE TABLE users (
id uuid PRIMARY KEY,
name varchar,
state varchar
);
I used only 0.7.x, where you can specify the key data type. Below is the cassandra-cli "help" from 0.7.6; Team
assume <column_family> keys as <type>;
Assume one of the attributes (comparator, sub_comparator, validator or keys)
of the given column family to match specified type. Available types: bytes, integer, long, lexicaluuid, timeuuid, utf8, ascii.
source
share