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

add support for GT, GTE index expressions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Normal
    • Resolution: Later
    • 0.7.1
    • Legacy/CQL
    • None

    Description

      this will require hitting every node in the cluster and merging results, unlike with EQ.

      For instance, say we have the following index rows for some hypothetical column C1:

      Node 1, ('' - M]
      4: A G K
      5: B F J M

      Node 2, (M - '']
      4: N P X
      5: Q R T

      Because we store the index columns sorted in partitioner order, queries for C1=4 can scan first node 1, then if insufficient data is found, proceed to node 2. But for GT or GTE queries we have to scan everyone and merge. (Since we don't know what the next value after 4 is. So an alternative would be for each node to send back, along with the data for the first row, the row key that comes next. This would be very very messy.)

      Note that since we don't yet support range scans backwards, we can't support LT or LTE queries. The easiest workaround there would be to add a way to specify that you want to create an index on the comparator, reversed. This is also worth doing for optimizations within normal columns – see CASSANDRA-1338.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jbellis Jonathan Ellis
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified