You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michaël Figuière (JIRA)" <ji...@apache.org> on 2012/07/20 17:57:33 UTC

[jira] [Created] (CASSANDRA-4454) Add a notice on cqlsh startup about CQL2/3 switches

Michaël Figuière created CASSANDRA-4454:
-------------------------------------------

             Summary: Add a notice on cqlsh startup about CQL2/3 switches
                 Key: CASSANDRA-4454
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4454
             Project: Cassandra
          Issue Type: Improvement
          Components: Tools
    Affects Versions: 1.1.2
            Reporter: Michaël Figuière


Several developers I've talked with seem not to have noticed the {{-3}} switch immediately to run in CQL3 mode. If missing, cqlsh can obviously appear buggy in its way to handle CQL3.
I guess it would be worth to add a notice at startup about this important detail.

--
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-4454) Add a notice on cqlsh startup about CQL2/3 switches

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

Jonathan Ellis updated CASSANDRA-4454:
--------------------------------------

    Fix Version/s:     (was: 1.1.3)
                   1.1.4
    
> Add a notice on cqlsh startup about CQL2/3 switches
> ---------------------------------------------------
>
>                 Key: CASSANDRA-4454
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4454
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>    Affects Versions: 1.1.0
>            Reporter: Michaël Figuière
>            Assignee: paul cannon
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 1.1.4
>
>
> Several developers I've talked with seem not to have noticed the {{-3}} switch immediately to run in CQL3 mode. If missing, cqlsh can obviously appear buggy in its way to handle CQL3.
> I guess it would be worth to add a notice at startup about this important detail.

--
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-4454) Add a notice on cqlsh startup about CQL2/3 switches

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

Jonathan Ellis updated CASSANDRA-4454:
--------------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s:     (was: 1.1.2)
                       1.1.0
        Fix Version/s: 1.1.3
             Assignee: paul cannon
    
> Add a notice on cqlsh startup about CQL2/3 switches
> ---------------------------------------------------
>
>                 Key: CASSANDRA-4454
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4454
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>    Affects Versions: 1.1.0
>            Reporter: Michaël Figuière
>            Assignee: paul cannon
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 1.1.3
>
>
> Several developers I've talked with seem not to have noticed the {{-3}} switch immediately to run in CQL3 mode. If missing, cqlsh can obviously appear buggy in its way to handle CQL3.
> I guess it would be worth to add a notice at startup about this important detail.

--
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-4454) Add a notice on cqlsh startup about CQL2/3 switches

Posted by "Michaël Figuière (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419641#comment-13419641 ] 

Michaël Figuière commented on CASSANDRA-4454:
---------------------------------------------

Indeed the way it's currently mentioned is enough for experienced users. On the other hand newcomers might not even be familiar with the fact we're in the middle of a CQL grammar switch, then they run cqlsh with default settings, copy paste an example of CQL3 DDL with a composite column from a web page and end up with something like this:

{noformat}
cqlsh:mykeyspace> CREATE TABLE timeline (
              ...          user_id varchar,
              ...          tweet_id uuid,
              ...          author varchar,
              ...          body varchar,
              ...          PRIMARY KEY (user_id, tweet_id));
Bad Request: line 6:40 mismatched input ')' expecting EOF
{noformat}

This is an example of confusing error you can have pushing CQL3 commands. The fact that several guys had difficulties with this situation tends to show that a message like "{{Consider using -3 switch to enable CQL3}} would be useful, either at startup or when a CQL2/3 grammar mismatch occur. As the former is trivial to implement, I was suggesting it. 
                
> Add a notice on cqlsh startup about CQL2/3 switches
> ---------------------------------------------------
>
>                 Key: CASSANDRA-4454
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4454
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>    Affects Versions: 1.1.0
>            Reporter: Michaël Figuière
>            Assignee: paul cannon
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 1.1.3
>
>
> Several developers I've talked with seem not to have noticed the {{-3}} switch immediately to run in CQL3 mode. If missing, cqlsh can obviously appear buggy in its way to handle CQL3.
> I guess it would be worth to add a notice at startup about this important detail.

--
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-4454) Add a notice on cqlsh startup about CQL2/3 switches

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

Brandon Williams commented on CASSANDRA-4454:
---------------------------------------------

It does actually tell you this on startup:

{noformat}
cassandra-3:/srv/cassandra# bin/cqlsh cassandra-3
Connected to Test Cluster at cassandra-3:9160.
[cqlsh 2.2.0 | Cassandra unknown | CQL spec 2.0.0 | Thrift protocol 19.33.0]
Use HELP for help.
cqlsh> 
cassandra-3:/srv/cassandra# bin/cqlsh cassandra-3 -3
Connected to Test Cluster at cassandra-3:9160.
[cqlsh 2.2.0 | Cassandra unknown | CQL spec 3.0.0 | Thrift protocol 19.33.0]
Use HELP for help.
cqlsh> 
{noformat}
                
> Add a notice on cqlsh startup about CQL2/3 switches
> ---------------------------------------------------
>
>                 Key: CASSANDRA-4454
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4454
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>    Affects Versions: 1.1.0
>            Reporter: Michaël Figuière
>            Assignee: paul cannon
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 1.1.3
>
>
> Several developers I've talked with seem not to have noticed the {{-3}} switch immediately to run in CQL3 mode. If missing, cqlsh can obviously appear buggy in its way to handle CQL3.
> I guess it would be worth to add a notice at startup about this important detail.

--
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-4454) Add a notice on cqlsh startup about CQL2/3 switches

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

paul cannon commented on CASSANDRA-4454:
----------------------------------------

I'd prefer a hint message like "{{Consider using -3}}" over adding more text to the startup banner. It seems to me like people don't usually pay much attention to that.
                
> Add a notice on cqlsh startup about CQL2/3 switches
> ---------------------------------------------------
>
>                 Key: CASSANDRA-4454
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4454
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>    Affects Versions: 1.1.0
>            Reporter: Michaël Figuière
>            Assignee: paul cannon
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 1.1.3
>
>
> Several developers I've talked with seem not to have noticed the {{-3}} switch immediately to run in CQL3 mode. If missing, cqlsh can obviously appear buggy in its way to handle CQL3.
> I guess it would be worth to add a notice at startup about this important detail.

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