CounterColumn

2011-05-05 Thread Dave Rav
can I use 'Colunm' and  'CounterColumn' in the same 'column family'?

create column family User with   
comparator = UTF8Type and   
column_metadata =   [ 
{column_name: first, validation_class: UTF8Type}, 
{column_name: last, validation_class: UTF8Type},
{column_name: friends, validation_class: CounterColumnType}   ];



if 
default_validation_class: CounterColumnType 
column 'set' fail


and if 
default_validation_class: UTF8Type 
CounterColumn 'incr' fail

Re: CounterColumn

2011-05-06 Thread Dave Rav
JIRA ticket
https://issues.apache.org/jira/browse/CASSANDRA-2614





On Fri, May 6, 2011 at 5:33 AM, Dave Rav  wrote:
> can I use 'Colunm' and  'CounterColumn' in the same 'column family'?

No you cannot. As of 0.8.0 you have either counter column family or column
family without counters. But I'll admit that right off the bat I don't see any
technical blocker to do what you're proposing. It actually make sense.

Would you mind opening a JIRA ticket for that ? I'll look into it.

--
Sylvain

>
> create column family User with
> comparator = UTF8Type and
> column_metadata =   [
>    {column_name: first, validation_class: UTF8Type},
>    {column_name: last, validation_class: UTF8Type},
>    {column_name: friends, validation_class: CounterColumnType}   ];
>
>
>
> if
> default_validation_class: CounterColumnType
> column 'set' fail
>
>
> and if
> default_validation_class: UTF8Type
> CounterColumn 'incr' fail


Re: CounterColumn

2011-05-17 Thread Dave Rav
can you estimate when this feature will be added?