You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Chris Goffinet (JIRA)" <ji...@apache.org> on 2009/06/27 00:55:47 UTC

[jira] Created: (CASSANDRA-263) get_slice needs to support desc from last column

get_slice needs to support desc from last column
------------------------------------------------

                 Key: CASSANDRA-263
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
             Project: Cassandra
          Issue Type: Bug
            Reporter: Chris Goffinet


At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-263) get_slice needs to support desc from last column

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

Jonathan Ellis commented on CASSANDRA-263:
------------------------------------------

I'm open to alternative APIs, but that one makes sense to me and doesn't require adding extra parameters :)

> get_slice needs to support desc from last column
> ------------------------------------------------
>
>                 Key: CASSANDRA-263
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>
> At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CASSANDRA-263) get_slice needs to support desc from last column

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

Eric Evans reassigned CASSANDRA-263:
------------------------------------

    Assignee: Eric Evans

> get_slice needs to support desc from last column
> ------------------------------------------------
>
>                 Key: CASSANDRA-263
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>            Assignee: Eric Evans
>
> At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-263) get_slice needs to support desc from last column

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

Jun Rao commented on CASSANDRA-263:
-----------------------------------

Is the problem that you don't know what the last column is? Normally, an application should be able to insert a fake column that's always larger than any real columns. Do you think that's good enough?

> get_slice needs to support desc from last column
> ------------------------------------------------
>
>                 Key: CASSANDRA-263
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>
> At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-263) get_slice needs to support desc from last column

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

Jun Rao updated CASSANDRA-263:
------------------------------

    Attachment: issue263.patchv1

Attach a fix. If startColumn is empty and isAscending is false, assume that we scan from the largest column in descending order.

Also fix a bug in SliceFilterQuery.filterSuperColumn() that didn't handle descending order properly.


> get_slice needs to support desc from last column
> ------------------------------------------------
>
>                 Key: CASSANDRA-263
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>            Assignee: Jun Rao
>             Fix For: 0.4
>
>         Attachments: issue263.patchv1
>
>
> At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-263) get_slice needs to support desc from last column

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

Jun Rao commented on CASSANDRA-263:
-----------------------------------

Using the column index to start with the last column group is possible and is efficient. I am just wondering if it is a good idea to give empty starting column different meanings depending on the ordering.

> get_slice needs to support desc from last column
> ------------------------------------------------
>
>                 Key: CASSANDRA-263
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>
> At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CASSANDRA-263) get_slice needs to support desc from last column

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

Jonathan Ellis reassigned CASSANDRA-263:
----------------------------------------

    Assignee: Jun Rao

> get_slice needs to support desc from last column
> ------------------------------------------------
>
>                 Key: CASSANDRA-263
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>            Assignee: Jun Rao
>             Fix For: 0.4
>
>
> At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-263) get_slice needs to support desc from last column

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

Jonathan Ellis updated CASSANDRA-263:
-------------------------------------

    Fix Version/s: 0.4

> get_slice needs to support desc from last column
> ------------------------------------------------
>
>                 Key: CASSANDRA-263
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>            Assignee: Eric Evans
>             Fix For: 0.4
>
>
> At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CASSANDRA-263) get_slice needs to support desc from last column

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

Jonathan Ellis reassigned CASSANDRA-263:
----------------------------------------

    Assignee:     (was: Eric Evans)

> get_slice needs to support desc from last column
> ------------------------------------------------
>
>                 Key: CASSANDRA-263
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>             Fix For: 0.4
>
>
> At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-263) get_slice needs to support desc from last column

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

Chris Goffinet updated CASSANDRA-263:
-------------------------------------

    Affects Version/s: 0.4

> get_slice needs to support desc from last column
> ------------------------------------------------
>
>                 Key: CASSANDRA-263
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>
> At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-263) get_slice needs to support desc from last column

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

Hudson commented on CASSANDRA-263:
----------------------------------

Integrated in Cassandra #154 (See [http://hudson.zones.apache.org/hudson/job/Cassandra/154/])
    allow start of [] to mean "start with the largest value" when ascending=false.  patch by Jun Rao; reviewed by jbellis for 


> get_slice needs to support desc from last column
> ------------------------------------------------
>
>                 Key: CASSANDRA-263
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>            Assignee: Jun Rao
>             Fix For: 0.4
>
>         Attachments: issue263.patchv1
>
>
> At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-263) get_slice needs to support desc from last column

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

Jonathan Ellis commented on CASSANDRA-263:
------------------------------------------

Yes.

I was thinking that we could have the "CF" format (w/ no ":") stand for "start w/ first if asc or last if desc."  Reading the last from the column index should be reasonably efficient, right?

> get_slice needs to support desc from last column
> ------------------------------------------------
>
>                 Key: CASSANDRA-263
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-263
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>
> At the moment there's no way to ask for a slice starting with the last column and going desc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.