You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Manoj Kanta Mainali (Created) (JIRA)" <ji...@apache.org> on 2012/04/06 15:43:22 UTC

[jira] [Created] (CASSANDRA-4129) Cannot create keyspace with specific keywords through cli

Cannot create keyspace with specific keywords through cli
---------------------------------------------------------

                 Key: CASSANDRA-4129
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4129
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 1.0.8
            Reporter: Manoj Kanta Mainali
            Priority: Minor




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

        

[jira] [Commented] (CASSANDRA-4129) Cannot create keyspace with specific keywords through cli

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13248478#comment-13248478 ] 

Jonathan Ellis commented on CASSANDRA-4129:
-------------------------------------------

+1
                
> Cannot create keyspace with specific keywords through cli
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-4129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4129
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.8
>            Reporter: Manoj Kanta Mainali
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0.10
>
>         Attachments: CASSANDRA-4129.patch
>
>
> Keyspaces cannot be create when the keyspace name which are used as keywords in the cli, such as 'keyspace', 'family' etc., through CLI. Even when surrounding the keyspace with quotation does not solve the problem. However, such keyspaces can be created through other client such as Hector.
> This is similar to the issue CASSANDRA-3195, in which the column families could not be created. Similar to the solution of CASSANDRA-3195, using String keyspaceName = CliUtil.unescapeSQLString(statement.getChild(0).getText()) in executeAddKeySpace would solve the problem. 

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

        

[jira] [Resolved] (CASSANDRA-4129) Cannot create keyspace with specific keywords through cli

Posted by "Jonathan Ellis (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-4129.
---------------------------------------

    Resolution: Invalid

cli keywords must be quoted
                
> Cannot create keyspace with specific keywords through cli
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-4129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4129
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.8
>            Reporter: Manoj Kanta Mainali
>            Priority: Minor
>
> Keyspaces cannot be create when the keyspace name which are used as keywords in the cli, such as 'keyspace', 'family' etc., through CLI. Even when surrounding the keyspace with quotation does not solve the problem. However, such keyspaces can be created through other client such as Hector.
> This is similar to the issue CASSANDRA-3195, in which the column families could not be created. Similar to the solution of CASSANDRA-3195, using String keyspaceName = CliUtil.unescapeSQLString(statement.getChild(0).getText()) in executeAddKeySpace would solve the problem. 

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

        

[jira] [Commented] (CASSANDRA-4129) Cannot create keyspace with specific keywords through cli

Posted by "Manoj Kanta Mainali (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13248392#comment-13248392 ] 

Manoj Kanta Mainali commented on CASSANDRA-4129:
------------------------------------------------

For keyspace creation quotation, both single and double, does not work.

Here is a sample of error I get when creating keyspace

[default@unknown]create keyspace 'column';
Invalid keyspace name: 'column'

[default@unknown]create keyspace "column";
Syntax error at position 16: unexpected """ for `create keyspace "column";`.

Using quotation works for cf, but not for ks. Anything specific I need to do?
                
> Cannot create keyspace with specific keywords through cli
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-4129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4129
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.8
>            Reporter: Manoj Kanta Mainali
>            Priority: Minor
>
> Keyspaces cannot be create when the keyspace name which are used as keywords in the cli, such as 'keyspace', 'family' etc., through CLI. Even when surrounding the keyspace with quotation does not solve the problem. However, such keyspaces can be created through other client such as Hector.
> This is similar to the issue CASSANDRA-3195, in which the column families could not be created. Similar to the solution of CASSANDRA-3195, using String keyspaceName = CliUtil.unescapeSQLString(statement.getChild(0).getText()) in executeAddKeySpace would solve the problem. 

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

        

[jira] [Updated] (CASSANDRA-4129) Cannot create keyspace with specific keywords through cli

Posted by "Pavel Yaskevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Yaskevich updated CASSANDRA-4129:
---------------------------------------

    Fix Version/s:     (was: 1.0.9)
                   1.0.10
    
> Cannot create keyspace with specific keywords through cli
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-4129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4129
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.8
>            Reporter: Manoj Kanta Mainali
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0.10
>
>         Attachments: CASSANDRA-4129.patch
>
>
> Keyspaces cannot be create when the keyspace name which are used as keywords in the cli, such as 'keyspace', 'family' etc., through CLI. Even when surrounding the keyspace with quotation does not solve the problem. However, such keyspaces can be created through other client such as Hector.
> This is similar to the issue CASSANDRA-3195, in which the column families could not be created. Similar to the solution of CASSANDRA-3195, using String keyspaceName = CliUtil.unescapeSQLString(statement.getChild(0).getText()) in executeAddKeySpace would solve the problem. 

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

        

[jira] [Updated] (CASSANDRA-4129) Cannot create keyspace with specific keywords through cli

Posted by "Manoj Kanta Mainali (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manoj Kanta Mainali updated CASSANDRA-4129:
-------------------------------------------

    Description: 
Keyspaces cannot be create when the keyspace name which are used as keywords in the cli, such as 'keyspace', 'family' etc., through CLI. Even when surrounding the keyspace with quotation does not solve the problem. However, such keyspaces can be created through other client such as Hector.

This is similar to the issue CASSANDRA-3195, in which the column families could not be created. Similar to the solution of CASSANDRA-3195, using String keyspaceName = CliUtil.unescapeSQLString(statement.getChild(0).getText()) in executeAddKeySpace would solve the problem. 
    
> Cannot create keyspace with specific keywords through cli
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-4129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4129
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.8
>            Reporter: Manoj Kanta Mainali
>            Priority: Minor
>
> Keyspaces cannot be create when the keyspace name which are used as keywords in the cli, such as 'keyspace', 'family' etc., through CLI. Even when surrounding the keyspace with quotation does not solve the problem. However, such keyspaces can be created through other client such as Hector.
> This is similar to the issue CASSANDRA-3195, in which the column families could not be created. Similar to the solution of CASSANDRA-3195, using String keyspaceName = CliUtil.unescapeSQLString(statement.getChild(0).getText()) in executeAddKeySpace would solve the problem. 

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

        

[jira] [Updated] (CASSANDRA-4129) Cannot create keyspace with specific keywords through cli

Posted by "Pavel Yaskevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Yaskevich updated CASSANDRA-4129:
---------------------------------------

    Attachment: CASSANDRA-4129.patch

patch against cassandra-1.0
                
> Cannot create keyspace with specific keywords through cli
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-4129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4129
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.8
>            Reporter: Manoj Kanta Mainali
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0.9
>
>         Attachments: CASSANDRA-4129.patch
>
>
> Keyspaces cannot be create when the keyspace name which are used as keywords in the cli, such as 'keyspace', 'family' etc., through CLI. Even when surrounding the keyspace with quotation does not solve the problem. However, such keyspaces can be created through other client such as Hector.
> This is similar to the issue CASSANDRA-3195, in which the column families could not be created. Similar to the solution of CASSANDRA-3195, using String keyspaceName = CliUtil.unescapeSQLString(statement.getChild(0).getText()) in executeAddKeySpace would solve the problem. 

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

        

[jira] [Commented] (CASSANDRA-4129) Cannot create keyspace with specific keywords through cli

Posted by "Manoj Kanta Mainali (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13248348#comment-13248348 ] 

Manoj Kanta Mainali commented on CASSANDRA-4129:
------------------------------------------------

To be more specific, creating keyspaces like 'create keyspace keyspace' or 'create keyspace 'keyspace'' or 'create keyspace family' would fail and raise syntax error error.
                
> Cannot create keyspace with specific keywords through cli
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-4129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4129
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.8
>            Reporter: Manoj Kanta Mainali
>            Priority: Minor
>
> Keyspaces cannot be create when the keyspace name which are used as keywords in the cli, such as 'keyspace', 'family' etc., through CLI. Even when surrounding the keyspace with quotation does not solve the problem. However, such keyspaces can be created through other client such as Hector.
> This is similar to the issue CASSANDRA-3195, in which the column families could not be created. Similar to the solution of CASSANDRA-3195, using String keyspaceName = CliUtil.unescapeSQLString(statement.getChild(0).getText()) in executeAddKeySpace would solve the problem. 

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

        

[jira] [Reopened] (CASSANDRA-4129) Cannot create keyspace with specific keywords through cli

Posted by "Jonathan Ellis (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis reopened CASSANDRA-4129:
---------------------------------------

      Assignee: Pavel Yaskevich
    
> Cannot create keyspace with specific keywords through cli
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-4129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4129
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.8
>            Reporter: Manoj Kanta Mainali
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>
> Keyspaces cannot be create when the keyspace name which are used as keywords in the cli, such as 'keyspace', 'family' etc., through CLI. Even when surrounding the keyspace with quotation does not solve the problem. However, such keyspaces can be created through other client such as Hector.
> This is similar to the issue CASSANDRA-3195, in which the column families could not be created. Similar to the solution of CASSANDRA-3195, using String keyspaceName = CliUtil.unescapeSQLString(statement.getChild(0).getText()) in executeAddKeySpace would solve the problem. 

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