incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Lebresne <sylv...@datastax.com>
Subject Re: Replace list with map
Date Thu, 31 Oct 2013 10:50:45 GMT
That would be a bug. If you could open a ticket on JIRA, that would be
great.

--
Sylvain


On Thu, Oct 31, 2013 at 10:23 AM, Oli Schacher <cassandra@lists.wgwh.ch>wrote:

> Hi
>
> I'm playing with collections in CQL.  I'm trying to drop a
> list and create a map with the same name, but I'm getting: "Bad
> Request: comparators do not match or are not compatible."
>
> # table setup
> cqlsh:os_test1> create table thetable(id timeuuid primary key, somevalue
> text);
> cqlsh:os_test1> alter table thetable add mycollection list<text>;
>
> # drop list and replace with map
> cqlsh:os_test1> alter table thetable drop mycollection;
> cqlsh:os_test1> alter table thetable add mycollection map<text,text>;
> Bad Request: comparators do not match or are not compatible.
>
> Creating a map with a different name works fine.
>
> Is this a bug, a limitation or am I doing something wrong?
>
> (Cassandra 2.0.2)
>
> Thanks
> Oli
> --
> message transmitted on 100% recycled electrons
>

Mime
View raw message