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

Support IN clause for any clustering column

    XMLWordPrintableJSON

Details

    Description

      Given CASSANDRA-3885

      It seems it should be possible to store multiple ranges for many predicates even the inner parts of a composite column.

      They could be expressed as a expanded set of filter queries.

      example:

      CREATE TABLE test (
             name text,
             tdate timestamp,
             tdate2 timestamp,
             tdate3 timestamp,
             num double,
             PRIMARY KEY(name,tdate,tdate2,tdate3)
           ) WITH COMPACT STORAGE;
      
      SELECT * FROM test WHERE 
        name IN ('a','b') and
        tdate IN ('2010-01-01','2011-01-01') and
        tdate2 IN ('2010-01-01','2011-01-01') and
        tdate3 IN ('2010-01-01','2011-01-01') 
      
      
      

      Attachments

        1. 4762-1.txt
          40 kB
          T Jake Luciani

        Issue Links

          Activity

            People

              blerer Benjamin Lerer
              tjake T Jake Luciani
              Benjamin Lerer
              Tom Hobbs
              Votes:
              3 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: