cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8370) cqlsh doesn't handle LIST statements correctly
Date Wed, 03 Dec 2014 19:31:13 GMT

    [ 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: <module 'cassandra' from '/home/sam/projects/cassandra/bin/../lib/cassandra-driver-internal-only-2.1.2.zip/cassandra-driver-2.1.2/cassandra/__init__.py'>
> 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)

Mime
View raw message