cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler Hobbs <ty...@datastax.com>
Subject Re: Composite metadata
Date Mon, 30 Apr 2012 18:03:17 GMT
When you set comparator = LexicalUUIDType, you're saying that column names
are UUIDs.  In your column metadata, you need to use a UUID for column_name
if that's what you want.

I suspect that you either don't want LexicalUUIDType for your column names
or you're looking for default_validation_class, which applies to all column
values by default.

On Mon, Apr 30, 2012 at 4:22 AM, Juan Ezquerro <juan@sofistic.net> wrote:

> Hi,
>
> I have a columnfamily like that:
>
> CREATE COLUMN FAMILY Clients
>    WITH key_validation_class = 'CompositeType(LexicalUUIDType,UTF8Type)'
>    AND comparator = LexicalUUIDType
>    AND column_metadata = [
>            {column_name: name, validation_class: UTF8Type}
>    ];
>
> My metadata definition is wrong, which is the correct way?
>
> --
> Juan Ezquerro LLanes <Sofistic Team>
>
> Telf: 618349107/964051479
>



-- 
Tyler Hobbs
DataStax <http://datastax.com/>

Mime
View raw message