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

Secondary indexing of map keys

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      CASSANDRA-4511 started adding secondary indexing for collections, but didn't wired map key indexing because this requires generalizing a bit the 2ndary index API to support 2 indexes on the same column. And since that's not entirely related to the initial problem of CASSANDRA-4511, let's tackle this last part here.

      I'll note that one other is the syntax. For selection, I propose

      SELECT * FROM foo WHERE myMap CONTAINS KEY 'bar';
      

      (but that assumes we use CONTAINS in CASSANDRA-4511, if we use IN, we'll need something else)

      For declaring indexes I'm less inspired. We could have something like

      CREATE INDEX ON foo(myMap KEYS)
      

      but maybe someone has a better idea?

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            slebresne Sylvain Lebresne Assign to me
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment