[ 
https://issues.apache.org/jira/browse/CASSANDRA-2231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403243#comment-13403243
 ] 

Luís Ferreira commented on CASSANDRA-2231:
------------------------------------------

Hi,

I've patched a 0.7.9 version of cassandra with this patch plus the one on 
CASSANDRA-2355, and got no errors, but when running it I get:

{code}
Invalid access of stack red zone 0x100401fe8 rip=0x1010c8f5e
{code}

I create the column family as so:

{code}
CfDef base_columns_cf_definition = new CfDef();
base_columns_cf_definition.setName("BaseColumns_CF");
base_columns_cf_definition.setColumn_type("Standard");
base_columns_cf_definition.setComparator_type("CompositeType(BytesType,BytesType)");
base_columns_cf_definition.setKeyspace("Table"+this.getContainerid())
{code}

I would really like to have this feature, but I cannot upgrade to version 
0.8.1. What am I doing wrong?

                
> Add CompositeType comparer to the comparers provided in 
> org.apache.cassandra.db.marshal
> ---------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2231
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2231
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Contrib
>            Reporter: Ed Anuff
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 0.8.1
>
>         Attachments: 
> 0001-Add-compositeType-and-DynamicCompositeType-v2.patch, 
> 0001-Add-compositeType-and-DynamicCompositeType-v3.patch, 
> 0001-Add-compositeType-and-DynamicCompositeType-v4.patch, 
> 0001-Add-compositeType-and-DynamicCompositeType_0.7.patch, 
> CompositeType-and-DynamicCompositeType.patch, 
> edanuff-CassandraCompositeType-1e253c4.zip
>
>
> CompositeType is a custom comparer that makes it possible to create 
> comparable composite values out of the basic types that Cassandra currently 
> supports, such as Long, UUID, etc.  This is very useful in both the creation 
> of custom inverted indexes using columns in a skinny row, where each column 
> name is a composite value, and also when using Cassandra's built-in secondary 
> index support, where it can be used to encode the values in the columns that 
> Cassandra indexes.  One scenario for the usage of these is documented here: 
> http://www.anuff.com/2010/07/secondary-indexes-in-cassandra.html.  Source for 
> contribution is attached and has been previously maintained on github here: 
> https://github.com/edanuff/CassandraCompositeType

--
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