You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (Created) (JIRA)" <ji...@apache.org> on 2012/02/29 15:45:56 UTC

[jira] [Created] (CASSANDRA-3980) Cli should be able to define CompositeType comparators

Cli should be able to define CompositeType comparators
------------------------------------------------------

                 Key: CASSANDRA-3980
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3980
             Project: Cassandra
          Issue Type: Improvement
          Components: Core
            Reporter: Brandon Williams
            Assignee: Pavel Yaskevich
             Fix For: 1.0.9


There is currently no way to define, for instance, CompositeType(UTF8Type,Int32Type) in a CF definition.  

--
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-3980) Cli should be able to define CompositeType comparators

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

Sylvain Lebresne commented on CASSANDRA-3980:
---------------------------------------------

Hum, what I mean is that on the 1.0 branch, in the cli, you can do:
{noformat}
[default@test] create column family cf with comparator='CompositeType(UTF8Type, Int32Type)';
53c527f0-62e8-11e1-0000-fe8ebeead9f9
Waiting for schema agreement...
... schemas agree across the cluster
[default@test] set cf[a]['foo:3'] = 3;
Value inserted.
Elapsed time: 48 msec(s).
[default@test] get cf[a];
=> (column=foo:3, value=03, timestamp=1330528624015000)
Returned 1 results.
Elapsed time: 43 msec(s).
{noformat}

I agree that an example in the help would be great, and I suppose we could update the CLI so that you don't need the quotes at all (though imho it's not worth the trouble), but it works.
                
> Cli should be able to define CompositeType comparators
> ------------------------------------------------------
>
>                 Key: CASSANDRA-3980
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3980
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 1.0.9
>
>
> There is currently no way to define, for instance, CompositeType(UTF8Type,Int32Type) in a CF definition.  

--
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-3980) Cli should be able to define CompositeType comparators

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

Brandon Williams commented on CASSANDRA-3980:
---------------------------------------------

If we can, we should add an example in the help.  I asked Pavel before creating this though and he told me to create it :)
                
> Cli should be able to define CompositeType comparators
> ------------------------------------------------------
>
>                 Key: CASSANDRA-3980
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3980
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 1.0.9
>
>
> There is currently no way to define, for instance, CompositeType(UTF8Type,Int32Type) in a CF definition.  

--
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-3980) Cli should be able to define CompositeType comparators

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

Pavel Yaskevich commented on CASSANDRA-3980:
--------------------------------------------

huh, if it works like that I think we can simply document that.
                
> Cli should be able to define CompositeType comparators
> ------------------------------------------------------
>
>                 Key: CASSANDRA-3980
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3980
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 1.0.9
>
>
> There is currently no way to define, for instance, CompositeType(UTF8Type,Int32Type) in a CF definition.  

--
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-3980) Cli should be able to define CompositeType comparators

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

Pavel Yaskevich commented on CASSANDRA-3980:
--------------------------------------------

And you can't really use just a CompositeType it returns 'Invalid definition for comparator org.apache.cassandra.db.marshal.CompositeType'
                
> Cli should be able to define CompositeType comparators
> ------------------------------------------------------
>
>                 Key: CASSANDRA-3980
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3980
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 1.0.9
>
>
> There is currently no way to define, for instance, CompositeType(UTF8Type,Int32Type) in a CF definition.  

--
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-3980) Cli should be able to define CompositeType comparators

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

Brandon Williams commented on CASSANDRA-3980:
---------------------------------------------

+1
                
> Cli should be able to define CompositeType comparators
> ------------------------------------------------------
>
>                 Key: CASSANDRA-3980
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3980
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 1.0.9
>
>         Attachments: CASSANDRA-3980.patch
>
>
> There is currently no way to define, for instance, CompositeType(UTF8Type,Int32Type) in a CF definition.  

--
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-3980) Cli should be able to define CompositeType comparators

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

Sylvain Lebresne commented on CASSANDRA-3980:
---------------------------------------------

Are we sure of that? At least I'm sure I've create a CF with compositeType with the cli at some point, though I suppose it may be broken since then. You do have to use quote though.
                
> Cli should be able to define CompositeType comparators
> ------------------------------------------------------
>
>                 Key: CASSANDRA-3980
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3980
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 1.0.9
>
>
> There is currently no way to define, for instance, CompositeType(UTF8Type,Int32Type) in a CF definition.  

--
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-3980) Cli should be able to define CompositeType comparators

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

Pavel Yaskevich updated CASSANDRA-3980:
---------------------------------------

    Attachment: CASSANDRA-3980.patch

updated docs for create/update column family.
                
> Cli should be able to define CompositeType comparators
> ------------------------------------------------------
>
>                 Key: CASSANDRA-3980
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3980
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Brandon Williams
>            Assignee: Pavel Yaskevich
>             Fix For: 1.0.9
>
>         Attachments: CASSANDRA-3980.patch
>
>
> There is currently no way to define, for instance, CompositeType(UTF8Type,Int32Type) in a CF definition.  

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