You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Mikhail Mazursky (JIRA)" <ji...@apache.org> on 2013/11/22 13:03:35 UTC

[jira] [Updated] (CASSANDRA-6393) Invalid metadata for IN ? queries

     [ https://issues.apache.org/jira/browse/CASSANDRA-6393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mikhail Mazursky updated CASSANDRA-6393:
----------------------------------------

    Attachment: column_def_debug.png

Attaching screenshot from debugger.

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