[jira] [Commented] (CASSANDRA-5402) Add secondary indexes on multiple columns.

2013-03-30 Thread Alejandro Rivero (JIRA)

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

Alejandro Rivero commented on CASSANDRA-5402:
-

To expand on the suggestion; I would expect some kind of column definition as

column_metadata =
[{
column_name : MyIndexedColumn1,
validation_class : IntegerType,
index_type : 99,
index_name : "MyIdxName:0"},
{
column_name : MyIndexedColumn2,
validation_class : UTF8Type,
index_type : 99,
index_name : "MyIdxName:1"}]

And it should produce a secondary index 
MyIdxName with a comparator CompositeType(IntegerType, UTF8Type)









> Add secondary indexes on multiple columns.
> --
>
> Key: CASSANDRA-5402
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5402
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Core
>Reporter: Alejandro Rivero
>  Labels: features, newbie
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> Using as index a CompositeType it seems that it should be possible to build a 
> secondary index on two or more columns. (If it is already implemented, please 
> consider this issue a documentation bug :-)
> A possible way to implement this  the old interface is to use the same 
> index_name for all the involved columns, or perhaps a combination of 
> index_name plus a suffix telling the position of each column in the 
> corresponding  CompositeType of the index.

--
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: http://www.atlassian.com/software/jira


[jira] [Created] (CASSANDRA-5402) Add secondary indexes on multiple columns.

2013-03-29 Thread Alejandro Rivero (JIRA)
Alejandro Rivero created CASSANDRA-5402:
---

 Summary: Add secondary indexes on multiple columns.
 Key: CASSANDRA-5402
 URL: https://issues.apache.org/jira/browse/CASSANDRA-5402
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Reporter: Alejandro Rivero


Using as index a CompositeType it seems that it should be possible to build a 
secondary index on two or more columns. (If it is already implemented, please 
consider this issue a documentation bug :-)

A possible way to implement this  the old interface is to use the same 
index_name for all the involved columns, or perhaps a combination of index_name 
plus a suffix telling the position of each column in the corresponding  
CompositeType of the index.


--
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: http://www.atlassian.com/software/jira