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

Invalid metadata for IN ? queries

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Not A Problem
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Java Driver 2.0.0-rc1

    • Severity:
      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 Mazurskiy

          Issue Links

            Activity

              People

              • Assignee:
                slebresne Sylvain Lebresne
                Reporter:
                ash2k Mikhail Mazurskiy
                Authors:
                Sylvain Lebresne
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: