cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CASSANDRA-6393) Invalid metadata for IN ? queries
Date Fri, 22 Nov 2013 13:24:36 GMT

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

Sylvain Lebresne reassigned CASSANDRA-6393:
-------------------------------------------

    Assignee: Sylvain Lebresne

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

Mime
View raw message