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 77049182AC for ; Sat, 5 Dec 2015 13:21:12 +0000 (UTC) Received: (qmail 29280 invoked by uid 500); 5 Dec 2015 13:21:12 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 29245 invoked by uid 500); 5 Dec 2015 13:21:12 -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 29234 invoked by uid 99); 5 Dec 2015 13:21:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Dec 2015 13:21:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E94412C1F6B for ; Sat, 5 Dec 2015 13:21:10 +0000 (UTC) Date: Sat, 5 Dec 2015 13:21:10 +0000 (UTC) From: "DOAN DuyHai (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-10820) Enhance metadata for index to be able to link an index with 1 to N columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DOAN DuyHai updated CASSANDRA-10820: ------------------------------------ Description: Original JIRA created on driver side: https://datastax-oss.atlassian.net/browse/JAVA-1008 After the refactoring of meta data, the index meta data has been moved to table level to support different types of index (functional, composite ...), fine. However, there is still a strong need to be able to associate an index with a list of columns involved into its value. Given the example: {code:sql} CREATE CUSTOM INDEX my_index ON ks.t1(a, keys(b), foo(c)) USING 'indexclass' {code} We should be able to establish a 1:N relationship between the index and the column: * index -> a * index -> b (with its key) * index -> c (using UDF foo) The original requirement is to able to display a table metadata and flag each column to know whether it has an index or it or not (no matter it is a simple/classic or composite index). I'm using this feature for *Apache Zeppelin Cassandra interpreter* (DESCRIBE TABLE) Ping [~beobal] because he worked on this with [~adutra] was: Original JIRA created on driver side: https://datastax-oss.atlassian.net/browse/JAVA-1008 After the refactoring of meta data, the index meta data has been moved to table level to support different types of index (functional, composite ...) fine. However, there is still a strong need to be table to associate an index with a list of columns involved into its value. Given the example: {code:sql} CREATE CUSTOM INDEX my_index ON ks.t1(a, keys(b), foo(c)) USING 'indexclass' {code} We should be able to establish a 1:N relationship between the index and the column: * index -> a * index -> b (with its key) * index -> c (using UDF foo) The original requirement is to able to display a table metadata and flag each column to know whether it has an index or it or not (no matter it is a simple/classic or composite index). I'm using this feature for *Apache Zeppelin Cassandra interpreter* (DESCRIBE TABLE) > Enhance metadata for index to be able to link an index with 1 to N columns > -------------------------------------------------------------------------- > > Key: CASSANDRA-10820 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10820 > Project: Cassandra > Issue Type: Improvement > Components: Distributed Metadata > Environment: C* 3.0.x > Reporter: DOAN DuyHai > > Original JIRA created on driver side: https://datastax-oss.atlassian.net/browse/JAVA-1008 > After the refactoring of meta data, the index meta data has been moved to table level to support different types of index (functional, composite ...), fine. > However, there is still a strong need to be able to associate an index with a list of columns involved into its value. Given the example: > {code:sql} > CREATE CUSTOM INDEX my_index ON ks.t1(a, keys(b), foo(c)) USING 'indexclass' > {code} > We should be able to establish a 1:N relationship between the index and the column: > * index -> a > * index -> b (with its key) > * index -> c (using UDF foo) > The original requirement is to able to display a table metadata and flag each column to know whether it has an index or it or not (no matter it is a simple/classic or composite index). I'm using this feature for *Apache Zeppelin Cassandra interpreter* (DESCRIBE TABLE) > Ping [~beobal] because he worked on this with [~adutra] -- This message was sent by Atlassian JIRA (v6.3.4#6332)