incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler Hobbs <ty...@riptano.com>
Subject Re: Secondary Indexes with TimeUUIDType CF Not Working?
Date Tue, 14 Dec 2010 00:29:03 GMT
When you say 'comparator = TimeUUIDType', your saying that all column names
are TimeUUIDs.  So, when you try to create an index on a column with name
'uuid_nonindexed', it complains because that's a string, not a TimeUUID.

- Tyler

On Mon, Dec 13, 2010 at 6:16 PM, Frank LoVecchio <frank@isidorey.com> wrote:

> I was playing around with secondary indexes in 0.7 RC2 through the command
> line, and I can't seem to get them work with a TimeUUIDType Column Family.
>
> For Instance:
>
> create column family TestSecondaryIndexes with comparator = TimeUUIDType
> ... and column_metadata=[{column_name: uuid_nondexed, validation_class:
> TimeUUIDType},
> ... {column_name: year, validation_class: LongType, index_type: KEYS},
> ... {column_name: month, validation_class: LongType, index_type: KEYS},
> ... {column_name: day, validation_class: LongType, index_type: KEYS},
> .. {column_name: timezone, validation_class: UTF8Type, index_type: KEYS}];
>
> Throws Invalid UUID string: uuid_nondexed.  Using other CF comparator types
> worked, even when I changed the uuid_dummy validation_class to something
> different than the CF.
>
> Am I missing something or is there not yet support for this comparator
> type?
>
> Thanks,
>
> Frank
>
>

Mime
View raw message