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

SELECT DISTINCT with a LIMIT is broken by paging

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 2.0.7
    • Component/s: None
    • Labels:
      None
    • Severity:
      Normal
    • Since Version:

      Description

      The paging for RangeSliceCommand only support the case where we count CQL3 rows . However, in the case of SELECT DISTINCT, we do actually want to use the "count partitions, not CQL3 row" path and that's currently broken when the paging commands are used (this was first reported on the Java driver JIRA and there is a reproduction script there).

        Attachments

        1. 6857-2.0.txt
          3 kB
          Sylvain Lebresne
        2. 6857-2.0-v2.txt
          5 kB
          Sylvain Lebresne
        3. 6857-2.1.txt
          6 kB
          Sylvain Lebresne

          Activity

            People

            • Assignee:
              slebresne Sylvain Lebresne
              Reporter:
              slebresne Sylvain Lebresne
              Authors:
              Sylvain Lebresne
              Reviewers:
              Tom Hobbs
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: