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 17F29D18E for ; Wed, 3 Oct 2012 07:02:16 +0000 (UTC) Received: (qmail 96770 invoked by uid 500); 3 Oct 2012 07:02:15 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 96501 invoked by uid 500); 3 Oct 2012 07:02:10 -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 96436 invoked by uid 99); 3 Oct 2012 07:02:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 07:02:08 +0000 Date: Wed, 3 Oct 2012 18:02:08 +1100 (NCT) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: <373035034.158041.1349247728465.JavaMail.jiratomcat@arcas> In-Reply-To: <1697032035.11089.1341524674678.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (CASSANDRA-4416) Include metadata for system keyspace itself in schema_* tables 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-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne updated CASSANDRA-4416: ---------------------------------------- Attachment: 4416_fix.txt The problem being, when we load the table from the system table, the system ones have already been loaded and shouldn't be loaded a second time. Attaching a patch that ignore the system keyspaces when reading schema tables (we only write those for client sake, we never need them internally, so let just do as if they weren't there). > Include metadata for system keyspace itself in schema_* tables > -------------------------------------------------------------- > > Key: CASSANDRA-4416 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4416 > Project: Cassandra > Issue Type: Improvement > Components: Core > Affects Versions: 1.2.0 beta 1 > Reporter: paul cannon > Assignee: Jonathan Ellis > Priority: Minor > Labels: cql, cql3 > Fix For: 1.2.0 beta 2 > > Attachments: 4416_fix.txt, 4416.txt > > > The `system.schema_keyspaces`, `system.schema_columnfamilies`, and `system.schema_columns` virtual tables allow clients to query schema and layout information through CQL. This will be invaluable when users start to make more use of the CQL-only protocol (CASSANDRA-2478), since there will be no other way to determine certain information about available columnfamilies, keyspaces, or show metadata about them. > However, the system keyspace itself, and all the columnfamilies in it, are not represented in the schema_* tables: > {noformat} > cqlsh> select * from system.schema_keyspaces where "keyspace" = 'system'; > cqlsh> > cqlsh> select * from system.schema_columnfamilies where "keyspace" = 'system'; > cqlsh> > cqlsh> select * from system.schema_columns where "keyspace" = 'system'; > cqlsh> > {noformat} > It would be greatly helpful to clients which do more introspection than the minimum (say, for example, cqlsh) to be able to get information on the structure and availability of schema-definition tables. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira