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

Sylvain Lebresne updated CASSANDRA-3657:
----------------------------------------

    Attachment: 0001-Allow-compatible-comparator-changes-v2.patch

Ok, I actually forgot to do the actual replacement of the comparator, I was 
only validating the replacement was legal, without changing it.

Now, because CFMetadata.apply() apply changes directly to the current 
CFMetadata (instead of creating a new one and replacing the old one with it), 
it means this patch has to make comparator and subComparator non-final anymore.

I think we should probably change CFMetadata.apply() however, because that 
means that currently CF udpate are not applied atomically, which is not a huge 
deal but will cause problem someday. I want to see how CASSANDRA-1391 changes 
that however before creating a ticket/writing a patch.
                
> Allow extending CompositeType comparator
> ----------------------------------------
>
>                 Key: CASSANDRA-3657
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3657
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: API, Core
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Sylvain Lebresne
>            Priority: Critical
>             Fix For: 1.1
>
>         Attachments: 0001-Allow-compatible-comparator-changes-v2.patch, 
> 0001-Allow-compatible-comparator-changes.patch
>
>
> Quoting Sylvain from CASSANDRA-2474,
> bq. if you declare a comparator like CompositeType(IntType, UUIDType, 
> UTF8Type), you can have columns that have only some prefix of the component 
> (typically '42:92d21d0a-d6cb-437c-9d3f-b67aa733a19f' is a valid column name 
> for that comparator), and as a consequence it would be possible to allow 
> 'extend' the preceding comparator to say CompositeType(IntType, UUIDType, 
> UTF8Type, IntType)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to