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 F113A10484 for ; Wed, 3 Dec 2014 19:31:13 +0000 (UTC) Received: (qmail 93509 invoked by uid 500); 3 Dec 2014 19:31:13 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 93475 invoked by uid 500); 3 Dec 2014 19:31:13 -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 93463 invoked by uid 99); 3 Dec 2014 19:31:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2014 19:31:13 +0000 Date: Wed, 3 Dec 2014 19:31:13 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-8370) cqlsh doesn't handle LIST statements correctly 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-8370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14233401#comment-14233401 ] Jonathan Ellis commented on CASSANDRA-8370: ------------------------------------------- [~iamaleksey] want to throw in a second opinion here? > cqlsh doesn't handle LIST statements correctly > ---------------------------------------------- > > Key: CASSANDRA-8370 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8370 > Project: Cassandra > Issue Type: Bug > Reporter: Sam Tunnicliffe > Assignee: Sam Tunnicliffe > Priority: Minor > Labels: cqlsh > Fix For: 2.1.3 > > Attachments: 8370.txt, 8370v2.patch > > > {{LIST USERS}} and {{LIST PERMISSIONS}} statements are not handled correctly by cqlsh in 2.1 (since CASSANDRA-6307). > Running such a query results in errors along the lines of: > {noformat} > sam@easy:~/projects/cassandra$ bin/cqlsh --debug -u cassandra -p cassandra > Using CQL driver: > Connected to Test Cluster at 127.0.0.1:9042. > [cqlsh 5.0.1 | Cassandra 2.1.2-SNAPSHOT | CQL spec 3.2.0 | Native protocol v3] > Use HELP for help. > cassandra@cqlsh> list users; > Traceback (most recent call last): > File "bin/cqlsh", line 879, in onecmd > self.handle_statement(st, statementtext) > File "bin/cqlsh", line 920, in handle_statement > return self.perform_statement(cqlruleset.cql_extract_orig(tokens, srcstr)) > File "bin/cqlsh", line 953, in perform_statement > result = self.perform_simple_statement(stmt) > File "bin/cqlsh", line 989, in perform_simple_statement > self.print_result(rows, self.parse_for_table_meta(statement.query_string)) > File "bin/cqlsh", line 970, in parse_for_table_meta > return self.get_table_meta(ks, cf) > File "bin/cqlsh", line 732, in get_table_meta > ksmeta = self.get_keyspace_meta(ksname) > File "bin/cqlsh", line 717, in get_keyspace_meta > raise KeyspaceNotFound('Keyspace %r not found.' % ksname) > KeyspaceNotFound: Keyspace None not found. > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)