cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-7730) altering a table to add a static column bypasses clustering column requirement check
Date Sun, 10 Aug 2014 17:43:11 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-7730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Ellis updated CASSANDRA-7730:
--------------------------------------

    Assignee: Sylvain Lebresne

> altering a table to add a static column bypasses clustering column requirement check
> ------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7730
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7730
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Tupshin Harper
>            Assignee: Sylvain Lebresne
>             Fix For: 2.1.0
>
>
> cqlsh:test_ks> create TABLE foo ( bar int, primary key (bar));
> cqlsh:test_ks> alter table foo add bar2 text static;
> cqlsh:test_ks> describe table foo;
> CREATE TABLE foo (
>   bar int,
>   bar2 text static,
>   PRIMARY KEY ((bar))
> ) 
> cqlsh:test_ks> select * from foo;
> TSocket read 0 bytes
> ERROR [Thrift:12] 2014-08-09 15:08:22,518 CassandraDaemon.java (line 199) Exception in
thread Thread[Thrift:12,5,main]
> java.lang.AssertionError
> 	at org.apache.cassandra.config.CFMetaData.getStaticColumnNameBuilder(CFMetaData.java:2142)
> 	at org.apache.cassandra.cql3.statements.SelectStatement.makeFilter(SelectStatement.java:454)
> 	at org.apache.cassandra.cql3.statements.SelectStatement.getRangeCommand(SelectStatement.java:360)
> 	at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:206)
> 	at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:61)
> 	at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:158)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message