[
https://issues.apache.org/jira/browse/CASSANDRA-7744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylvain Lebresne updated CASSANDRA-7744:
----------------------------------------
Attachment: 7744.txt
Actually, scratch that. I don't think preserving denseness for thrift is the
safest choice. All we want to ensure here is that for CQL tables (which can't
be updated from thrift) we can't change our mind on denseness. So let's leave
thrift table from now and have thrift update recompute denseness for each
update. This is what the inital patch was doing but the bug of that initial
version was just that isDense was not properly set in {{CFMetadata.apply}}.
I've updated the patch to fix that.
> Dropping the last collection column turns
> CompoundSparseCellNameType$WithCollection into CompoundDenseCellNameType
> ------------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-7744
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7744
> Project: Cassandra
> Issue Type: Bug
> Reporter: Aleksey Yeschenko
> Assignee: Sylvain Lebresne
> Fix For: 2.0.10, 2.1.0
>
> Attachments: 7744.txt
>
>
> Dropping the last collection column turns
> CompoundSparseCellNameType$WithCollection into CompoundDenseCellNameType
> To reproduce
> {code}
> cqlsh:test> create table test (id int primary key, col map<int,int>);
> cqlsh:test> alter table test drop col;
> cqlsh:test> alter table test add col list<int>;
> code=2200 [Invalid query] message="Cannot add new column to a COMPACT STORAGE
> table"
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)