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

Give CRR a default input_cql Statement

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 2.0.10, 2.1.0
    • Component/s: None
    • Labels:
      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-v4.txt
          4 kB
          Jeremiah Jordan
        2. 7726-3.txt
          0.6 kB
          Mike Adamson
        3. 7726-2.txt
          10 kB
          Mike Adamson
        4. 7726.txt
          12 kB
          Mike Adamson

          Issue Links

            Activity

              People

              • Assignee:
                mike_tr_adamson Mike Adamson
                Reporter:
                rspitzer Russell Spitzer
                Authors:
                Mike Adamson
                Reviewers:
                Brandon Williams
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: