cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Thompson (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-5713) CQL3 token() <= token() does not work as expected
Date Thu, 16 Oct 2014 17:22:34 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-5713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Philip Thompson resolved CASSANDRA-5713.
----------------------------------------
    Resolution: Cannot Reproduce

I also can't reproduce on 2.0-HEAD.

> CQL3 token() <= token() does not work as expected
> -------------------------------------------------
>
>                 Key: CASSANDRA-5713
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5713
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Colin B.
>            Priority: Minor
>
> Using tokens to go backward through a table in CQL3 does not work as expected.
> Say there is some data available:
> {code}
> > SELECT key FROM data_list where token(key) >= token('6') limit 10;
>  key
> -----
>    6
>    7
>    9
>    4
>    3
>    A
>    5
>    8
>    2
>    1
> {code}
> I expect:
> {code}
> > SELECT key FROM data_list where token(key) <= token('1') limit 5;
>  key
> -----
>    A
>    5
>    8
>    2
>    1
> {code}
> However the following occurs:
> {code}
> > SELECT key FROM data_list where token(key) <= token('1') limit 5;
>  key
> -----
>    6
>    7
>    9
>    4
>    3
> {code}
> The '<' operator has similar unexpected behavior.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message