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

Give CRR a default input_cql Statement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.0.10, 2.1.0
    • None
    • None

    Description

      Inorder to ease migration from CqlPagingRecordReader to CqlRecordReader, it would be helpful if CRR input_cql defaulted to a select statement that would mirror the behavior of CPRR.

      For example for a give table with partition key `((x,y,z),c1,c2)`
      It would automatically generate

      input_cql = SELECT * FROM ks.tab WHERE token(x,y,z) > ? AND token (x,y,z) <= ? 
      

      Attachments

        1. 7726.txt
          12 kB
          Mike Adamson
        2. 7726-2.txt
          10 kB
          Mike Adamson
        3. 7726-3.txt
          0.6 kB
          Mike Adamson
        4. 7726-v4.txt
          4 kB
          Jeremiah Jordan

        Issue Links

          Activity

            People

              mike_tr_adamson Mike Adamson
              rspitzer Russell Spitzer
              Mike Adamson
              Brandon Williams
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: