incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Smith <dsm...@likewise.com>
Subject RE: Suggestion about syntax of CREATE COLUMN FAMILY
Date Thu, 22 Dec 2011 16:51:27 GMT
FYI, I submitted an enhancement ticket<https://issues.apache.org/jira/browse/CASSANDRA-3660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel>
to JIRA about this.   The ticket was resolved with the comment: "cli is kept around for backwards
compatiblity at this point; cqlsh is 'the future.'"

 Don
________________________________
From: Stephen Pope [Stephen.Pope@quest.com]
Sent: Monday, December 12, 2011 6:34 AM
To: user@cassandra.apache.org
Subject: RE: Suggestion about syntax of CREATE COLUMN FAMILY

I’d like to second this. I’ve been working with Cassandra for a good while now, but when
I first started little things like this were confusing.

From: Don Smith [mailto:dsmith@likewise.com]
Sent: Friday, December 09, 2011 3:41 PM
To: user@cassandra.apache.org
Subject: Suggestion about syntax of CREATE COLUMN FAMILY

Currently, the syntax for creating column families is like this:
create column family Users
with comparator=UTF8Type
and default_validation_class=UTF8Type
and key_validation_class=UTF8Type;

It's not clear what "comparator" and "default_validation_class" refer to. Much clearer would
be:
create column family Users
with column_name_comparator=UTF8Type
and column_value_validation_class=UTF8Type
and key_validation_class=UTF8Type;

BTW, instead of "column_name_comparator", I'd actually prefer "column_key_comparator" since
it seems more accurate to call column names "column keys."

  Don

Mime
View raw message