cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Onnen <eon...@gmail.com>
Subject Dynamic Column Families in CQLSH v3
Date Fri, 24 Aug 2012 02:24:47 GMT
Hello All,

Attempting to create what the Datastax 1.1 documentation calls a
Dynamic Column Family
(http://www.datastax.com/docs/1.1/ddl/column_family#dynamic-column-families)
via CQLSH.

This works in v2 of the shell:

"create table data ( key varchar PRIMARY KEY) WITH comparator=LongType;"

When defined this way via v2 shell, I can successfully switch to v3
shell and query the CF fine.

The same syntax in v3 yields:

"Bad Request: comparator is not a valid keyword argument for CREATE TABLE"

The 1.1 documentation indicates that comparator is a valid option for
at least ALTER TABLE:

http://www.datastax.com/docs/1.1/configuration/storage_configuration#comparator

This leads me to believe that the correct way to create a dynamic
column family is to create a table with no named columns and alter the
table later but that also does not work:

"create table data (key varchar PRIMARY KEY);"

yields:

"Bad Request: No definition found that is not part of the PRIMARY KEY"

So, my question is, how do I create a Dynamic Column Family via the CQLSH v3?

Thanks!
-erik

Mime
View raw message