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

CREATE INDEX Modifications for Initial Release of SAI

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.x
    • CQL/Syntax, Feature/SAI
    • None
    • Semantic
    • Normal
    • All
    • None
    • Hide
      • Change the majority of existing tests to use simpler CREATE INDEX syntax
      • Preserve tests for existing creation syntax
      • Change SAI documentation to use simplified syntax
      • Test legacy 2i creation w/ explicit USING clause
      Show
      Change the majority of existing tests to use simpler CREATE INDEX syntax Preserve tests for existing creation syntax Change SAI documentation to use simplified syntax Test legacy 2i creation w/ explicit USING clause

    Description

      After a lengthy discussion on the dev list, the community seems to have arrived at the following list of TODOs before we release SAI in 5.0:

      1.) CREATE INDEX should be expanded to support USING … WITH OPTIONS…

      Essentially, we should be able to do something like CREATE INDEX ON tbl(v) USING ’sai’ WITH OPTIONS = ... and CREATE INDEX ON tbl(v) USING ‘cassandra’ as a more specific/complete way to emulate the current behavior of CREATE INDEX.

      2.) Allow operators to configure, in the YAML, a.) whether an index implementation must be specified w/ USING and CREATE INDEX and b.) what the default implementation will be, if USING isn’t required.

      3.) The defaults we ship w/ will avoid breaking existing CREATE INDEX usage. (i.e. A default is allowed, and that default will remain ‘cassandra’, or the legacy 2i)

      With all this in place, users should be able create SAI indexes w/ the simplest possible syntax, no defaults will change, and operators will have the ability to change defaults to favor SAI whenever they like.

      Attachments

        Issue Links

          Activity

            People

              maedhroz Caleb Rackliffe
              maedhroz Caleb Rackliffe
              Caleb Rackliffe
              Andres de la Peña, Maxwell Guo
              Votes:
              0 Vote for this issue
              Watchers:
              8 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 - 6h 20m
                  6h 20m