[ https://issues.apache.org/jira/browse/CASSANDRA-6393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylvain Lebresne resolved CASSANDRA-6393. ----------------------------------------- Resolution: Not A Problem Aleksey is right, I'm sorry for the brain fart, I mixed it up while responding to the original email, thinking we had inverted when we should have returned 'in(id)' but no. This is working as designed. > Invalid metadata for IN ? queries > --------------------------------- > > Key: CASSANDRA-6393 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6393 > Project: Cassandra > Issue Type: Bug > Components: Core > Environment: Java Driver 2.0.0-rc1 > Reporter: Mikhail Mazursky > Assignee: Sylvain Lebresne > Priority: Minor > Attachments: column_def_debug.png > > > I tried to use the following CQL query: > DELETE FROM table WHERE id IN ? > using Java driver like this: > prepStatement.setList("id", idsAsList); > but got the following exception: > {noformat} > java.lang.IllegalArgumentException: id is not a column defined in this > metadata > at > com.datastax.driver.core.ColumnDefinitions.getAllIdx(ColumnDefinitions.java:273) > at > com.datastax.driver.core.BoundStatement.setList(BoundStatement.java:840) > {noformat} > Debugger shows that Cassandra sends "in(id)" in metadata. Is this correct? > See mail thread for more details: > https://groups.google.com/a/lists.datastax.com/forum/#!topic/java-driver-user/U7mlKcoDL5o -- This message was sent by Atlassian JIRA (v6.1#6144)