[jira] [Updated] (CASSANDRA-2311) type validated row keys

2011-03-28 Thread Eric Evans (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Evans updated CASSANDRA-2311:
--

Attachment: v1-0001-CASSANDRA-2311-missed-CFM-conversion.txt

 type validated row keys
 ---

 Key: CASSANDRA-2311
 URL: https://issues.apache.org/jira/browse/CASSANDRA-2311
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Reporter: Eric Evans
Assignee: Jon Hermes
  Labels: cql
 Fix For: 0.8

 Attachments: 2311.txt, 
 v1-0001-CASSANDRA-2311-missed-CFM-conversion.txt


 The idea here is to allow the assignment of a column-family-wide key type 
 used to perform validation, (similar to how default_validation_class does for 
 column values).
 This should be as straightforward as extending the column family schema to 
 include the new attribute, and updating {{ThriftValidation.validateKey}} to 
 validate the key ({{AbstractType.validate}}).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (CASSANDRA-2311) type validated row keys

2011-03-25 Thread Jon Hermes (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jon Hermes updated CASSANDRA-2311:
--

Attachment: 2311.txt

ThriftValidation.validateKeyInColumnFamily(key, ksname, cfname) is the only 
tricky part to this patch. I have to first validate the key is legit and the 
column family is legit before I can scan the cf for the keyValidator to use to 
validate the key.

Past that, it's just standard adding an option to CFMD and the required 10k of 
code that comes with it.

In related news, check out http://wiki.apache.org/cassandra/ConfigurationNotes 
for standard adding an option to CFMD notes.

 type validated row keys
 ---

 Key: CASSANDRA-2311
 URL: https://issues.apache.org/jira/browse/CASSANDRA-2311
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Reporter: Eric Evans
Assignee: Jon Hermes
  Labels: cql
 Fix For: 0.8

 Attachments: 2311.txt


 The idea here is to allow the assignment of a column-family-wide key type 
 used to perform validation, (similar to how default_validation_class does for 
 column values).
 This should be as straightforward as extending the column family schema to 
 include the new attribute, and updating {{ThriftValidation.validateKey}} to 
 validate the key ({{AbstractType.validate}}).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira