[ https://issues.apache.org/jira/browse/CASSANDRA-5626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13718351#comment-13718351 ]
Aleksey Yeschenko commented on CASSANDRA-5626: ---------------------------------------------- bq. Why remove the break when checking if we have at least one indexed EQ clause? Otherwise https://github.com/apache/cassandra/blob/cassandra-1.2/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java#L1160 validation is non-deterministically reached - depending on the names of the indexed columns and on the hashmap seed (and then getIndexExpressions get(0) throws NPE with IN () half the time). So you need to iterate over all restrictions. > Support empty IN queries > ------------------------ > > Key: CASSANDRA-5626 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5626 > Project: Cassandra > Issue Type: Improvement > Components: Core > Affects Versions: 1.2.0 > Reporter: Alexander Solovyev > Assignee: Aleksey Yeschenko > Priority: Minor > Labels: cql3 > Attachments: 5626.txt > > > It would be nice to have support of empty IN queries. > Example: "SELECT a FROM t WHERE aKey IN ()". > One of the reasons is to have such support in DataStax Java Driver (see > discussion here: https://datastax-oss.atlassian.net/browse/JAVA-106). -- 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