Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-6393

Invalid metadata for IN ? queries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Not A Problem
    • None
    • None
    • None
    • Java Driver 2.0.0-rc1

    • Low

    Description

      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:

       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)
      

      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

      Attachments

        1. column_def_debug.png
          64 kB
          Mikhail Mazursky

        Issue Links

          Activity

            People

              slebresne Sylvain Lebresne
              ash2k Mikhail Mazursky
              Sylvain Lebresne
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: