Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD7F610EB0 for ; Wed, 20 Nov 2013 14:07:53 +0000 (UTC) Received: (qmail 10217 invoked by uid 500); 20 Nov 2013 14:07:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 10071 invoked by uid 500); 20 Nov 2013 14:07:43 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 9435 invoked by uid 99); 20 Nov 2013 14:07:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Nov 2013 14:07:37 +0000 Date: Wed, 20 Nov 2013 14:07:37 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-6383) Secondary indexing of map keys MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sylvain Lebresne created CASSANDRA-6383: ------------------------------------------- Summary: Secondary indexing of map keys Key: CASSANDRA-6383 URL: https://issues.apache.org/jira/browse/CASSANDRA-6383 Project: Cassandra Issue Type: Improvement Reporter: Sylvain Lebresne Assignee: Sylvain Lebresne Fix For: 2.1 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 {noformat} SELECT * FROM foo WHERE myMap CONTAINS KEY 'bar'; {noformat} (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 {noformat} CREATE INDEX ON foo(myMap KEYS) {noformat} but maybe someone has a better idea? -- This message was sent by Atlassian JIRA (v6.1#6144)