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

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

    [ https://issues.apache.org/jira/browse/CASSANDRA-6393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13830067#comment-13830067 ] 

Aleksey Yeschenko commented on CASSANDRA-6393:
----------------------------------------------

I wouldn't say it's a bug. "id" wouldn't be a list, but some single value, so "in(id)" for variadic IN's is there for a reason, to distinguish between the two. The java-driver might need some modifications though.

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