Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-3761 CQL 3.0
  3. CASSANDRA-3791

Support query by names for compact CF

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.0
    • Legacy/CQL

    Description

      Current code don't allow doing a query by names on wide rows (compact CF). I.e. with:

      CREATE TABLE test1 (
          k int,
          c int,
          v int,
          PRIMARY KEY (k, c)
      ) WITH COMPACT STORAGE;
      

      you cannot do:

      SELECT v FROM test1 WHERE k = 0 AND c IN (5, 2, 8)
      

      even though this is a simple name query.

      This ticket proposes to allow it.

      Attachments

        1. 0001-Refactor-select.patch
          29 kB
          Sylvain Lebresne
        2. 0002-Allow-IN-on-last-column-of-PRIMARY-KEY.patch
          5 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            Eric Evans
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: