You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "paul cannon (JIRA)" <ji...@apache.org> on 2012/06/05 23:48:22 UTC

[jira] [Updated] (CASSANDRA-4309) CQL3: cqlsh exception running "describe schema"

     [ https://issues.apache.org/jira/browse/CASSANDRA-4309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

paul cannon updated CASSANDRA-4309:
-----------------------------------

    Component/s: Tools
       Priority: Minor  (was: Major)
         Labels: cqlsh  (was: )

Occurs when using CQL3 and when the keyspace has no columnfamilies. (Workaround: make a columnfamily :)
                
> CQL3: cqlsh exception running "describe schema"
> -----------------------------------------------
>
>                 Key: CASSANDRA-4309
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4309
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.1.1
>            Reporter: Cathy Daw
>            Assignee: paul cannon
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 1.1.2
>
>
> {code}
> cqlsh> describe schema;
> CREATE KEYSPACE system WITH strategy_class = 'LocalStrategy';
> USE system;
> Traceback (most recent call last):
>   File "./cqlsh", line 811, in onecmd
>     self.handle_statement(st, statementtext)
>   File "./cqlsh", line 839, in handle_statement
>     return custom_handler(parsed)
>   File "./cqlsh", line 1329, in do_describe
>     self.describe_schema()
>   File "./cqlsh", line 1264, in describe_schema
>     self.print_recreate_keyspace(k, sys.stdout)
>   File "./cqlsh", line 1091, in print_recreate_keyspace
>     self.print_recreate_columnfamily(ksname, cf.name, out)
>   File "./cqlsh", line 1114, in print_recreate_columnfamily
>     layout = self.get_columnfamily_layout(ksname, cfname)
>   File "./cqlsh", line 706, in get_columnfamily_layout
>     layout = self.fetchdict()
>   File "./cqlsh", line 605, in fetchdict
>     return dict(zip([d[0] for d in desc], row))
> TypeError: 'NoneType' object is not iterable
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira