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 8175518D16 for ; Mon, 7 Dec 2015 19:35:11 +0000 (UTC) Received: (qmail 89103 invoked by uid 500); 7 Dec 2015 19:35:11 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 89073 invoked by uid 500); 7 Dec 2015 19:35:11 -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 89062 invoked by uid 99); 7 Dec 2015 19:35:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2015 19:35:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1DD622C1F5D for ; Mon, 7 Dec 2015 19:35:11 +0000 (UTC) Date: Mon, 7 Dec 2015 19:35:11 +0000 (UTC) From: "Lorina Poland (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10719) Inconsistencies within CQL 'describe', and CQL docs/'help describe' 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-10719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045553#comment-15045553 ] Lorina Poland commented on CASSANDRA-10719: ------------------------------------------- The CQL docs do cover all the DESCRIBE commands in 3.0. http://docs.datastax.com/en/cql/3.3/cql/cql_reference/describe_r1.html There are so many DESCRIBE commands that only "DESCRIBE" is called out in the listing. > Inconsistencies within CQL 'describe', and CQL docs/'help describe' > ------------------------------------------------------------------- > > Key: CASSANDRA-10719 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10719 > Project: Cassandra > Issue Type: Improvement > Components: CQL, Documentation and Website, Tools > Reporter: Michael Edge > Assignee: Michael Edge > Priority: Minor > Labels: cqlsh, doc-impacting, docs > Fix For: 2.1.12, 2.2.4, 3.0.1, 3.1 > > Attachments: CASSANDRA-2.1-10719-Describe.patch, CASSANDRA-2.2-10719-Describe.patch, CASSANDRA-3.0-10719-Describe.patch > > > While investigating the issue CASSANDRA-9678 I noticed a number of inconsistencies in the way 'describe' operates, so I'm opening a new issue to address these. This issue will also address CASSANDRA-9678. > I'd be happy to work on this. > There are a number of inconsistencies in the way 'describe' operates within cqlsh, and also in the 'help describe' description within cqlsh compared to the CQL documentation (at http://docs.datastax.com/en/cql/3.3/cql/cql_reference/describe_r1.html) > For example, 'desc functions' will list all functions for all keyspaces regardless of whether there is a current keyspace or not, whereas 'desc tables' or 'desc types' will list only the tables or types for the current keyspace. > Some commands exist in cqlsh that are not in the CQL documentation, nor in the 'help describe' description. For example, 'desc functions' is a valid CQLSH command but does not appear in either the CQL docs or 'help describe'. > I suggest we align the way the 'describe' command works so that it works consistently regardless of whether it is describing a table, type, function or any other database object, and also update the CQL and 'help describe' docs to match. Since 'describe tables' and it's variants has been around the longest we should probably align other 'describe' commands to 'describe tables'. > My preliminary analysis has shown at least the following inconsistencies: > - 'desc functions' (with current keyspace), differs from 'desc tables' and 'desc types'. > - a number of commands are missing from the CQL docs or 'help describe, such as: desc table ., desc functions (no current keyspace), desc function , desc type ., etc. -- This message was sent by Atlassian JIRA (v6.3.4#6332)