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

Do not require allow filtering when all primary keys are specified in SELECT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.x
    • CQL/Semantics
    • None
    • Correctness
    • Low
    • Normal
    • Adhoc Test
    • All
    • None
    • Hide

      ci

      Show
      ci

    Description

      This was discussed in

      https://lists.apache.org/thread/loj6jgv54szdvyt3wmvbtwwrrg1dtlxq

      Basically, when I have this table:

      create table ks.tb (p1 int, c1 int, col1 int, col2 int, primary key (p1, c1));
      

      and I do this

      select * from ks.tb where p1 = 1 and c1 = 2 and col2 = 1;
      

      this will fail and it will require to use ALLOW FILTERING just because we are also specifying "col2". This is clearly a bug - there is no reason to require it if we are going to fetch one row only as all partition and clustering keys were specified.

      Attachments

        Issue Links

          Activity

            People

              smiklosovic Stefan Miklosovic
              smiklosovic Stefan Miklosovic
              Stefan Miklosovic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m