You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Edward Capriolo (JIRA)" <ji...@apache.org> on 2012/10/24 19:50:12 UTC

[jira] [Comment Edited] (CASSANDRA-4854) Can not select the "Schema" table

    [ https://issues.apache.org/jira/browse/CASSANDRA-4854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483428#comment-13483428 ] 

Edward Capriolo edited comment on CASSANDRA-4854 at 10/24/12 5:48 PM:
----------------------------------------------------------------------

You are right my mistake. I noticed something else. It seems like if you describe an empty keyspace you get this.

{noformat}
cqlsh:system> describe schema;
USE testkeyspace;

expected string or buffer
{noformat}

Should we open another ticket for this? this is 1.2.0-beta btw.
                
      was (Author: appodictic):
    You are right my mistake. I noticed something else. It seems like if you describe an empty keyspace you get this.

{noformat}
cqlsh:system> describe schema;
USE testkeyspace;

expected string or buffer
{noformat}

Should we open another ticket for this?
                  
> Can not select the "Schema" table
> ---------------------------------
>
>                 Key: CASSANDRA-4854
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4854
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Edward Capriolo
>            Priority: Minor
>
> Some system tables can be selected with data. Some return 0 rows. Schema seems impossible to select because it's name is "Schema"
> {noformat}
> cqlsh:system> select * from schema_keyspaces;
>  keyspace_name | durable_writes | strategy_class                                       | strategy_options
> ---------------+----------------+------------------------------------------------------+----------------------------
>   testkeyspace |           True |          org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"1"}
>         testks |           True | org.apache.cassandra.locator.NetworkTopologyStrategy |        {"datacenter1":"1"}
> cqlsh:system> select * from Schema;
> Bad Request: line 1:14 no viable alternative at input 'Schema'
> cqlsh:system> select * from "Schema";
> cqlsh:system> select * from `"Schema`";
> Invalid syntax at line 1, char 15
>   select * from `"Schema`";
>                 ^
> cqlsh:system> select * from `Schema`;
> Invalid syntax at line 1, char 15
>   select * from `Schema`;
>                 ^
> cqlsh:system> select * from '"Schema"';
> Bad Request: line 1:14 no viable alternative at input '"Schema"'
> Perhaps you meant to use CQL 2? Try using the -2 option when starting cqlsh.
> {noformat}

--
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