cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-4982) cqlsh: alter table add column with table that has collection fails
Date Wed, 21 Nov 2012 22:04:58 GMT
Dave Brosius created CASSANDRA-4982:

             Summary: cqlsh: alter table add column with table that has collection fails
                 Key: CASSANDRA-4982
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2.0 beta 2
            Reporter: Dave Brosius
            Assignee: Sylvain Lebresne

create keyspace collections with replication = {'class':'SimpleStrategy', 'replication_factor':1};
use collections;
create table collections (key int primary key, aset set<text>);
insert into collections (key, aset) values (1, {'fee', 'fi'});
alter table collections add aaa text;
ERROR 16:52:33,792 Error occurred during processing of message.
java.lang.UnsupportedOperationException: ColumnToCollectionType should only be used in composite
types, never alone
        at org.apache.cassandra.db.marshal.ColumnToCollectionType.validate(
        at org.apache.cassandra.config.CFMetaData.validate(
        at org.apache.cassandra.service.MigrationManager.announceColumnFamilyUpdate(
        at org.apache.cassandra.cql3.statements.AlterTableStatement.announceMigration(
        at org.apache.cassandra.cql3.statements.SchemaAlteringStatement.execute(
        at org.apache.cassandra.cql3.QueryProcessor.processStatement(
        at org.apache.cassandra.cql3.QueryProcessor.process(
        at org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(
        at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(
        at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(
        at org.apache.thrift.ProcessFunction.process(
        at org.apache.thrift.TBaseProcessor.process(
        at org.apache.cassandra.thrift.CustomTThreadPoolServer$
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message