[ https://issues.apache.org/jira/browse/CASSANDRA-14344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16476934#comment-16476934 ]
Venkata Harikrishna Nukala commented on CASSANDRA-14344: -------------------------------------------------------- I am working on code changes. Just want to check if it is expected to support multi-column IN restriction too on clustering keys. For example: Table: {code:java} CREATE TABLE ks1.t3 ( key int, col1 int, col2 int, col3 int, value int, PRIMARY KEY (key, col1, col2, col3) ) WITH CLUSTERING ORDER BY (col1 ASC, col2 ASC, col3 ASC); {code} Data: {code:java} key | col1 | col2 | col3 | value -----+------+------+------+------- 100 | 0 | 0 | 0 | 1 102 | 0 | 1 | 0 | 3 101 | 0 | 0 | 1 | 2 103 | 0 | 1 | 1 | 4 {code} Query: {code:java} select * from ks1.t3 where (col2, col3) IN ((1,0), (1,1)) ALLOW FILTERING; {code} > Support the IN restrictions on indexed columns > ---------------------------------------------- > > Key: CASSANDRA-14344 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14344 > Project: Cassandra > Issue Type: New Feature > Reporter: Dikang Gu > Assignee: Venkata Harikrishna Nukala > Priority: Major > > Support IN filter query like this: > > CREATE TABLE ks1.t1 ( > key int, > col1 int, > col2 int, > value int, > PRIMARY KEY (key, col1, col2) > ) WITH CLUSTERING ORDER BY (col1 ASC, col2 ASC) > > cqlsh:ks1> select * from t1 where key = 1 and col2 in (1) allow filtering; > > key | col1 | col2 | value > -----+------+------+------- > 1 | 1 | 1 | 1 > 1 | 2 | 1 | 3 > > (2 rows) > cqlsh:ks1> select * from t1 where key = 1 and col2 in (1, 2) allow filtering; > *{color:#ff0000}InvalidRequest: Error from server: code=2200 [Invalid query] > message="IN restrictions are not supported on indexed columns"{color}* > cqlsh:ks1> -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org